GetAngleX - ObjectReference

Revision as of 10:54, 8 September 2012 by imported>Chesko (The note about actors not being able to rotate about the X axis is incorrect; this should refer to the Y axis instead.)

Member of: ObjectReference Script

Gets this object's rotation around the x axis.

Syntax

float Function GetAngleX() native

Parameters

None.

Return Value

This object's rotation around the x axis, in degrees.

Examples

Debug.Trace("We are rotated " + GetAngleX() + " degrees around the X axis")

Notes

  • The X angle for Actors is a value from -90 to 90.

See Also