|
Returns the direction towards which the object points.
Example A:
double x,y,z;
DWORD object=STATE_object_get_first_object();
STATE_object_get_direction(object, &x, &y, &z);
Example B:
Note that instead of doing it as shown below, it is easier to use the function STATE_object_get_direction1() instead
double xyz[3];
DWORD object=STATE_object_get_first_object();
STATE_object_get_direction(object, &xyz[0], &xyz[1], &xyz[2]);
See also STATE_object_get_direction1()
Remarks:
The returned direction is normalized (meaning it is a unit vector)
For more information about coordination systems and setting directions see the book (download the book free from www.3dstate.com )
|