Ejemplo n.º 1
0
 void Awake()
 {
     animator   = GetComponent <Animator>();
     locomotion = GetComponent <LocomotionSystem>();
     animator.applyRootMotion = false;
 }
Ejemplo n.º 2
0
 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;
 }