What are quaternions commonly used for?
transform.rotation = Quaternion.Euler(0, 90, 0);
- Representing 3D rotations
- Storing textures
- Streaming audio
- Compressing meshes
Quaternions represent rotations without the gimbal lock of Euler angles.
Play Game Dev ▸