Rotate

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

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

[help]
[Object].Rotate Axis:char{X, Y, Z} DegreesPerSec:float

Example

GlobeObject.Rotate X 33 

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.
  • Collision is not updated with rotation until the cell is reloaded or Update3D is used.

Bugs

  • Often causes the object this command was run on to be removed from the game when loading a save from before this command was used or in other cases changes will persist.

See Also