Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class RotatableObject : MonoBehaviour
- {
- private void RotateAccordingTo(Hand hand)
- {
- Quaternion desiredRotation = hand.CurrentRotation;
- desiredRotation.y = 0;
- desiredRotation.z = 0;
- this.transform.localRotation = desiredRotation;
- }
- }
Add Comment
Please, Sign In to add comment