Difference between revisions of "Rotate"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>TheImperialDragon
(See also SetAngle and GetAngle)
imported>Fella
 
(One intermediate revision by one other user not shown)
Line 10: Line 10:


==See Also==
==See Also==
*[[GetAngle]]  
*[[GetAngle]]  
*[[SetAngle]]
*[[SetAngle]]


[[Category: Functions]]
[[Category: Functions]]
[[Category:Functions (CS)]]
[[Category: Functions (CS 1.0)]]
[[Category: Movement Functions]]
[[Category: Movement Functions]]
[[Category: Movement Functions (CS 1.0)]]

Latest revision as of 11:50, 23 January 2008

Syntax:

Rotate axis, degrees/sec 

Example:

Rotate x, 100 


Rotates the object along the selected axis (x, y, or z) at the speed selected. This speed is in degrees per second. This movement is based on the object's local rotation. Thus, a positive y movement will rotate the object along its local forward vector.

NOTE: Because of the method used for rotation, this function is not reliable for complex rotations: rotating an object which has already been rotated may not work as you expect. The animation functions should be used for repetive or complex rotations, as they are both faster and more reliable.

See Also[edit | edit source]