C3DObject::GetDirection |
Top Previous Next |
Syntax:
GetDirection(), VECTOR3
Purpose: Retrieves the direction vector of the object.
Parameters: None.
Returned value(s): A VECTOR3 UDT containing the direction vector.
Application: v = player.GetDirection()
Class Hierarchy
Additional Info: All objects have position, direction, and orientation of Y axis (up vector). These three vectors form the basis of rotation and position in the 3D world. The directional vector is returned as a unit vector meaning it has the length of 1. When an object is first created it is assumed to have a directional vector of 0,0,1 or facing away from the viewer. As you rotate your object the direction vector changes to represent to correct orientation of the object.
|