SetAngle - ObjectReference: Difference between revisions

Jump to navigation Jump to search
→‎Notes: This is all under the assumption that the function behaves the same as the Creation Kit, but why wouldn't it?
imported>Threedee
imported>DavidJCobb
(→‎Notes: This is all under the assumption that the function behaves the same as the Creation Kit, but why wouldn't it?)
Line 27: Line 27:


== Notes ==
== Notes ==
 
*When rotating an object, it is important to know the order in which the rotation angles are applied. The Z-axis rotation (yaw: north/south/east/west) is applied first, followed by the Y-axis (roll: tilt) and finally the X-axis (pitch: forward/backward).
When rotating an object, it is important to know the order in which the rotation angles are applied.
*Skyrim appears to use extrinsic left-handed ZYX angles.
 
**''Extrinsic'' means that world-relative axes are used. Rotating an object along one axis won't change its other axes.
Z Axis rotation (North/South/East/West) is applied first, followed by Y Axis rotation, and finally X Axis rotation.
**''Left-handed'' means that objects rotate clockwise, as opposed to ''right-handed'' systems that use counter-clockwise rotations.


== See Also ==
== See Also ==
Anonymous user

Navigation menu