C3DObject::Orient |
Top Previous Next |
Syntax:
Orient(float dx, float dy, float dz, float ux, float uy, float uz)
Purpose: Aligns an object so that its z-direction points along the direction vector [dx, dy, dz] and its y-direction aligns with the vector [ux, uy, uz].
Parameters: dx, dy, dz - New directional vector. ux, uy, uz - New Up vector.
Returned value(s): None.
Application: mesh1.Orient(0,0,1, 0,1,0)
Class Hierarchy
Additional Info: The default orientation of an object is d[0,0,1], u[0,1,0]
See Also: |