Immerseum.VRSimulator Namespace > ControllerManager Class > moveController Method : moveController(Int32,Vector3,Quaternion) Method |
public static void moveController( int controller, UnityEngine.Vector3 targetPosition, UnityEngine.Quaternion targetRotation )
Debug.Log(HMDSimulator.leftController.position); Vector3 moveOffset = new Vector3(0,0,0.3f); ControllerManager.moveController(1, moveOffset); Debug.Log(HMDSimulator.leftController.position); // Outputs the same position as above, but with the Z-value increased by 0.3f.