Difference between revisions of "GetAngleX - ObjectReference"
m
→Notes: Added notes about NPC head-tracking and Player's angle restrictions while mounted.
imported>Jlundin |
imported>Verteiron m (→Notes: Added notes about NPC head-tracking and Player's angle restrictions while mounted.) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 20: | Line 20: | ||
Debug.Trace("We are rotated " + GetAngleX() + " degrees around the X axis") | Debug.Trace("We are rotated " + GetAngleX() + " degrees around the X axis") | ||
</source> | </source> | ||
== Notes == | |||
* The X angle for Actors is a value from -90 to 90. | |||
* The X angle for Actors capable of head-tracking generally follows their gaze: below zero is looking up, above zero is looking down. | |||
* The X angle for the Player matches the camera's angle in first person mode, but follows gaze (like NPCs) in third person mode. | |||
* While mounted, the Player's X angle is clamped to a value between -25 and 40, determined by the the camera's Z position. | |||
* While mounted, the Player's mount will have an X angle between -90 and 90, determined by the camera's Z position. | |||
== See Also == | == See Also == | ||
*[[ObjectReference Script]] | |||
*[[GetAngleY - ObjectReference]] | * [[ObjectReference Script]] | ||
*[[GetAngleZ - ObjectReference]] | * [[GetAngleY - ObjectReference]] | ||
*[[GetHeadingAngle - ObjectReference]] | * [[GetAngleZ - ObjectReference]] | ||
*[[SetAngle - ObjectReference]] | * [[GetHeadingAngle - ObjectReference]] | ||
* [[SetAngle - ObjectReference]] | |||
* [[GetAngle]] Console Function |