[Unity game development] quaternion Quaternion

There is a quaternion is to prevent gimbal lock

It indicates that the presence of a separate rotation state, and rotation property of the transform as

If the quaternion multiplication quaternion rotation operation superposition

Common attribute identity, indicating that the object is not rotating

Properties and methods common
identity of the quaternion non-rotating, the code used to create the object
LookRotation create a rotating, along the forward (z-axis) and the head restraint along a gaze upwards (y-axis)

Guess you like

Origin blog.csdn.net/Alina_catty/article/details/79066766
Recommended