コード例 #1
0
 void Start()
 {
     marker     = GetComponent <DoorDestinationMarker> ();
     controller = VRTK_DeviceFinder.DeviceTransform(VRTK_DeviceFinder.Devices.Right_Controller);
 }
コード例 #2
0
 // Update is called once per frame
 void Update()
 {
     GameObject head = VRTK_DeviceFinder.DeviceTransform(VRTK_DeviceFinder.Devices.Headset).gameObject;
 }
コード例 #3
0
ファイル: GameManager.cs プロジェクト: cmvanb/VRJam2017
 public void Start()
 {
     PlayArea = VRTK_DeviceFinder.PlayAreaTransform();
     Headset  = VRTK_DeviceFinder.DeviceTransform(VRTK_DeviceFinder.Devices.Headset);
 }
コード例 #4
0
        /// <summary>
        /// The relative position of the right controller in space.
        /// </summary>
        /// <returns>A 3-dimensional vector, equal to the right controller's relative displacement in the [0] x direction (float), [1] y direction (float), and [2] z direction (float).</returns>
        public Vector3 RightLocalPosition()

        {
            return(VRTK_DeviceFinder.DeviceTransform(VRTK_DeviceFinder.Devices.RightController).localPosition);
        }
コード例 #5
0
 /// <summary>
 /// The relative rotation of the right controller in space. Can be queried for its normalized value, eulerAngles, and w, x, y, and z components.
 /// </summary>
 /// <returns>A quaternion representing the right controller's relative conterclockwise angular displacement.</returns>
 public Quaternion RightLocalRotation()
 {
     return(VRTK_DeviceFinder.DeviceTransform(VRTK_DeviceFinder.Devices.RightController).localRotation);
 }
コード例 #6
0
 /// <summary>
 /// The transform (position, rotation, scale) of the right controller.
 /// </summary>
 /// <returns>The transform component of the right controller.</returns>
 public Transform RightTransform()
 {
     return(VRTK_DeviceFinder.DeviceTransform(VRTK_DeviceFinder.Devices.RightController));
 }
コード例 #7
0
 /// <summary>
 /// The rotation of the left controller in space. Can be queried for its normalized value, eulerAngles, and w, x, y, and z components.
 /// </summary>
 /// <returns>A quaternion representing the left controller's conterclockwise angular displacement.</returns>
 public Quaternion LeftRotation()
 {
     return(VRTK_DeviceFinder.DeviceTransform(VRTK_DeviceFinder.Devices.LeftController).rotation);
 }
コード例 #8
0
 /// <summary>
 /// The position of the left controller in space.
 /// </summary>
 /// <returns>A 3-dimensional vector, equal to the left controller's displacement in the [0] x direction (float), [1] y direction (float), and [2] z direction (float).</returns>
 public Vector3 LeftPosition()
 {
     return(VRTK_DeviceFinder.DeviceTransform(VRTK_DeviceFinder.Devices.LeftController).position);
 }
コード例 #9
0
 /// <summary>
 /// The transform (position, rotation, scale) of the left controller.
 /// </summary>
 /// <returns>The transform component of the left controller.</returns>
 public Transform LeftTransform()
 {
     return(VRTK_DeviceFinder.DeviceTransform(VRTK_DeviceFinder.Devices.LeftController));
 }
コード例 #10
0
        void findDevice()
        {
            Transform _transform = VRTK_DeviceFinder.DeviceTransform((VRTK.VRTK_DeviceFinder.Devices)device.Value);

            deviceObject.Value = _transform.gameObject;
        }