void Update()
 {
     if (m_sensorFound)
     {
         getReal3D.Sensor sensor = getReal3D.Input.GetSensor(sensorName);
         transform.localPosition = sensor.position;
         transform.localRotation = sensor.rotation;
     }
 }
示例#2
0
 void Update()
 {
     getReal3D.Sensor wandSensor = getWand();
     m_transform.localPosition = wandSensor.position;
     m_transform.localRotation = wandSensor.rotation;
 }
 void Update()
 {
     getReal3D.Sensor headSensor = getHead();
     m_transform.localPosition = headSensor.position;
     m_transform.localRotation = headSensor.rotation;
 }