public void TryHideHand(XRBaseInteractor interactor, bool hide) { if (interactor is XRDirectInteractor hand) { interactor.GetComponentInChildren <SkinnedMeshRenderer>().enabled = hide; } }
public void ChangePose(HandPoses newPose, XRBaseInteractor interactor) { HandVisuals visuals = interactor.GetComponentInChildren <HandVisuals>(); if (visuals != null) { visuals.LockPose(newPose); } }
void OnGrabbed(XRBaseInteractor rBaseInteractor) { handPresence = rBaseInteractor.GetComponentInChildren <HandPresence>(); oldPivot = grabInteractable.attachTransform.localRotation; }