Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. Quaternion newRotation = Quaternion.Euler(initialRotation.eulerAngles.x, initialRotation.eulerAngles.y, gyroRotation.eulerAngles.z);
  2. transform.rotation = newRotation;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement