Difference between revisions of "Rotate"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Geckbot
m (Robot: Automated text replacement (-Link to TES4 Construction Set Wiki +{{Incomplete}}\n\nLink to TES4 Construction Set Wiki))
imported>Omzy
(finished)
Line 1: Line 1:
{{Incomplete}}
{{Function
 
|CSWikiPage = Rotate
Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/Rotate Rotate].
|origin = GECK1
|summary = Rotates the calling object relative to the world on the specified axis (X, Y, or Z) at a given speed in degrees/sec.
|name = Rotate
|referenceType = [Object]
|arguments =
  {{FunctionArgument
  |Name = Axis
  |Type = char
  |Value = X, Y, Z
  }}
  {{FunctionArgument
  |Name = DegreesPerSec
  |Type = 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 repetive or complex rotations, as they are both faster and more reliable.


==See Also==
==See Also==
*[[GetAngle]]
*[[SetAngle]]
*[[SetAngle]]
*[[GetAngle]]
*[[GetHeadingAngle]]
*[[MoveTo]]
*[[SetPos]]
*[[GetPos]]


[[Category:Functions]]
[[Category:Functions]]
[[Category:Movement Functions]]
[[Category:Movement Functions]]

Revision as of 00:54, 31 July 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

[help]
[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 repetive or complex rotations, as they are both faster and more reliable.

See Also