Skip to content

Instantly share code, notes, and snippets.

@Zerophase
Created July 9, 2014 06:41
Show Gist options
  • Save Zerophase/3a57c7f59a765af1fc67 to your computer and use it in GitHub Desktop.
Save Zerophase/3a57c7f59a765af1fc67 to your computer and use it in GitHub Desktop.
Quaternion target = Quaternion.Euler(0f, 90f, 0f);
transform.rotation = Quaternion.Slerp(transform.rotation, transform.rotation * target, 1f); // place holder value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment