Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Quaternion newRotation = Quaternion.Euler(initialRotation.eulerAngles.x, initialRotation.eulerAngles.y, gyroRotation.eulerAngles.z);
- transform.rotation = newRotation;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement