void Awake() { animator = GetComponent <Animator>(); locomotion = GetComponent <LocomotionSystem>(); animator.applyRootMotion = false; }
void OnEndLocomotion(LocomotionSystem locomotionSystem) { Debug.Log("Teleportation is ended."); MainVRPlayer.transform.position = MainVRPlayer.transform.TransformPoint(XRRigGameobject.transform.localPosition); XRRigGameobject.transform.localPosition = Vector3.zero; }
private void OnEndLocomotion(LocomotionSystem locomotionsystem) { mainVRPlayer.transform.position = mainVRPlayer.transform.TransformPoint(XRRig.transform.localPosition); XRRig.transform.localPosition = Vector3.zero; }