Difference between revisions of "Rotate"
Jump to navigation
Jump to search
imported>Cipscis m (Putting parameters on the same line) |
imported>Artisten m (spell fix) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 14: | Line 14: | ||
|Type = float | |Type = float | ||
}} | }} | ||
|example = GlobeObject.Rotate | |example = GlobeObject.Rotate X 33.3 | ||
}} | }} | ||
==Notes== | ==Notes== | ||
*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 | *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 repetitive or complex rotations, as they are both faster and more reliable. | ||
*A reference can only be rotated around one axis per frame. If [[Rotate]] is called on the same reference multiple times in one frame, only the last call will be applied. | |||
==See Also== | ==See Also== | ||
Line 28: | Line 29: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Functions (GECK 1.1)]] | |||
[[Category:Movement Functions]] | [[Category:Movement Functions]] | ||
[[Category:Movement Functions (GECK 1.1)]] |
Latest revision as of 07:41, 1 November 2009
< [[::Category:Functions|Category:Functions]]
Link to TES4 Construction Set Wiki: Rotate.
A function included in the GECK version 1.1.0.36.
Description
Rotates the calling object relative to the world on the specified axis (X, Y, or Z) at a given speed in degrees/sec.
Syntax
[Object].Rotate Axis:char{X, Y, Z} DegreesPerSec:float
Example
GlobeObject.Rotate X 33.3
Notes
- 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 repetitive or complex rotations, as they are both faster and more reliable.
- A reference can only be rotated around one axis per frame. If Rotate is called on the same reference multiple times in one frame, only the last call will be applied.