Vive Tracker used on the leg of a Humanoid
Unity Inspector
- Show (Button): Press to create an Gameobject representing the real world Vive tracker.
- Sensor: A reference to the the real world Vive tracker.
|
enum | ID {
Head
, LeftHand
, RightHand
, Hips
,
LeftFoot
, RightFoot
, Tracker1
, Tracker2
,
Tracker3
, Tracker4
, Count
} |
|
|
override void | CheckSensor (FootTarget footTarget) |
|
override void | SetSensor2Target () |
| Updates the leg targets based on the current sensor position and rotation.
|
|
override void | UpdateSensorTransformFromTarget (Transform _) |
| Updates the sensor position and rotation based on the current position of the leg targets.
|
|
override void | Start (HumanoidControl _humanoid, Transform targetTransform) |
| Prepares the leg for tracking with the sensor.
|
|
override void | Update () |
| Updates the leg target based on the status of the tracked sensor.
|
|
|
static Rotation | CalculateLegOrientation (Vector joint1Position, Vector joint2Position, Rotation hipsRotation) |
|
static Rotation | CalculateBoneRotation (Vector bonePosition, Vector parentBonePosition, Vector upDirection) |
|
|
LegBones | attachedBone = LegBones.Foot |
| The bone on the leg controlled by the sensor.
|
|
bool | isLeft |
|
TargetData | upperLeg |
|
TargetData | lowerLeg |
|
TargetData | foot |
|
DeviceView | device |
| The device to which the sensor belongs.
|
|
Tracker.Status | status = Tracker.Status.Unavailable |
| Status of the sensor.
|
|
|
override void | CreateSensorTransform () |
|
void | UpdateSensor () |
|
|
Vector | _localSensorPosition |
|
Rotation | _localSensorRotation |
|
Vector | _sensorPosition |
|
Rotation | _sensorRotation |
|
float | _positionConfidence |
| Tracking confidence.
|
|
float | _rotationConfidence |
|
Vector | _sensor2TargetPosition = Vector.zero |
| The position of the tracker relative to the origin of the object it is tracking.
|
|
Rotation | _sensor2TargetRotation = Rotation.identity |
|
|
override string | name [get] |
|
override HumanoidTracker | tracker [get] |
|
ViveTrackerComponent | viveTracker [get] |
|
Vector | localSensorPosition [get] |
|
Rotation | localSensorRotation [get] |
|
Vector | sensorPosition [get] |
|
Rotation | sensorRotation [get] |
|
float | positionConfidence [get] |
|
float | rotationConfidence [get] |
|
Vector | sensor2TargetPosition [get, set] |
|
Rotation | sensor2TargetRotation [get, set] |
|
◆ UpdateSensorTransformFromTarget()
override void Passer.Humanoid.CustomLeg.UpdateSensorTransformFromTarget |
( |
Transform |
_ | ) |
|
|
inherited |
Updates the sensor position and rotation based on the current position of the leg targets.
- Parameters
-
◆ Start()
override void Passer.Humanoid.CustomLeg.Start |
( |
HumanoidControl |
_humanoid, |
|
|
Transform |
targetTransform |
|
) |
| |
|
inherited |
Prepares the leg for tracking with the sensor.
- Parameters
-
_humanoid | The humanoid for which this leg is tracked |
targetTransform | The transform of the foot target |
It will initialze the sensor2TargetPosition and sensor2TargetRotation values. It will determine whether the sensor should be shown and rendered. It will start the tracking of the sensor.
◆ Update()
override void Passer.Humanoid.CustomLeg.Update |
( |
| ) |
|
|
virtualinherited |
The documentation for this class was generated from the following file:
- d:/Unity/Humanoid4/Humanoid4_Pro/Assets/humanoidcontrol4_pro/Runtime/HumanoidControl/Scripts/Extensions/ViveTrackers/ViveTrackerLeg.cs