private void FixedUpdate()
 {
     XRUI_Helper.ConstraintVelocityLocally(transform, buttonRigidBody, true, true, false);
     XRUI_Helper.ConstraintPositionLocally(transform, buttonRigidBody, true, true, false);
     buttonRigidBody.transform.localRotation = Quaternion.identity;
     buttonObject.localPosition = new Vector3(0, 0, buttonObject.localPosition.z);
 }
Esempio n. 2
0
 private void FixedUpdate()
 {
     XRUI_Helper.ConstraintVelocityLocally(transform, interactableRigidbody, false, true, true);
     transform.localPosition = new Vector3(transform.localPosition.x, 0, 0);
 }