Vive Tracker used on the head of a Humanoid
Unity Inspector
A Vive Tracker can be used on the head instead of an HMD. There is no need to have a UnityXR controller or any camera at all in the scene. It is not possible to have both a Unity XR and Vive Tracker enabled on the head.
- Show (Button): Press to create an Gameobject representing the real world Vive tracker.
- Sensor: A reference to the the real world Vive tracker.
|
override void | CheckSensor (HeadTarget headTarget) |
|
override void | Start (HumanoidControl _humanoid, Transform targetTransform) |
| Prepares the head for tracking with the tracked sensor.
|
|
override void | Update () |
| Updates the head target based on the status of the tracke sensor.
|
|
virtual void | Init (HeadTarget headTarget) |
|
void | InitController (SerializedProperty sensorProp, HeadTarget target) |
|
void | RemoveController (SerializedProperty sensorProp) |
|
virtual void | CheckSensorTransform () |
|
virtual void | SetSensor2Target () |
|
virtual void | UpdateSensorTransformFromTarget (Transform targetTransform) |
|
virtual void | Stop () |
|
virtual void | RefreshSensor () |
|
virtual void | ShowSensor (HumanoidTarget target, bool shown) |
|
|
virtual void | CreateSensorTransform (string resourceName, Vector3 sensor2TargetPosition, Quaternion sensor2TargetRotation) |
|
virtual void | CreateSensorTransform () |
|
void | CreateSensorTransform (Transform targetTransform, string resourceName, Vector3 _sensor2TargetPosition, Quaternion _sensor2TargetRotation) |
|
virtual void | UpdateNeckTargetFromHead () |
|
void | RemoveSensorTransform () |
|
void | UpdateSensorTransform (Tracking.Sensor sensor) |
|
virtual void | UpdateTargetTransform () |
|
virtual void | UpdateTarget (HumanoidTarget.TargetTransform target, Transform sensorTransform) |
|
virtual void | UpdateTarget (HumanoidTarget.TargetTransform target, SensorComponent sensorComponent) |
|
Vector3 | GetTargetPosition (Transform sensorTransform) |
|
Quaternion | GetTargetRotation (Transform sensorTransform) |
|
void | UpdateSensor () |
|