public void DettachHand(CustomHand hand) { hand.DetachHand(); if (hand.handType == SteamVR_Input_Sources.LeftHand) { leftMyGrabPoser = null; leftHand = null; } if (hand.handType == SteamVR_Input_Sources.RightHand) { rightMyGrabPoser = null; rightHand = null; } }
public void DettachHands() { if (leftHand) { leftHand.DetachHand(); leftMyGrabPoser = null; leftHand = null; } if (rightHand) { rightHand.DetachHand(); rightMyGrabPoser = null; rightHand = null; } }