Skip to content

Instantly share code, notes, and snippets.

@anunyin
Created October 25, 2013 10:24
Show Gist options
  • Save anunyin/7152591 to your computer and use it in GitHub Desktop.
Save anunyin/7152591 to your computer and use it in GitHub Desktop.
// Overwrite the rotation value entirely w/ a new one.
SetRotation(quaternion rot);
SetRotationEuler(vec3 rot);
SetRotationAxis(float angle, vec3 axis);
// Apply an additional rotation to the currently existing one.
Rotate(quaternion rot);
RotateEuler(vec3 rot);
RotateAxis(float angle, vec3 axis);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment