Guest User

Untitled

a guest
Apr 26th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public class RotatableObject : MonoBehaviour
  2. {
  3. private void RotateAccordingTo(Hand hand)
  4. {
  5. Quaternion desiredRotation = hand.CurrentRotation;
  6. desiredRotation.y = 0;
  7. desiredRotation.z = 0;
  8.  
  9. this.transform.localRotation = desiredRotation;
  10. }
  11. }
Add Comment
Please, Sign In to add comment