Humanoid Control for Unity v4
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Properties | List of all members
Passer.Humanoid.HumanoidTracker Class Referenceabstract

Description

A Humanoid tracker.

Inheritance diagram for Passer.Humanoid.HumanoidTracker:
Passer.Tracking.Tracker Passer.Humanoid.CustomTracker Passer.Humanoid.LeapTracker Passer.Humanoid.UnityXRTracker

Public Types

enum  Status { Unavailable , Present , Tracking }
 The tracking status. More...
 

Public Member Functions

virtual void CheckTracker (HumanoidControl humanoid)
 Check the status of the tracker.
 
delegate TrackerComponent TrackerGetter (Transform transform, Vector3 localPosition, Quaternion localRotation)
 Function delegate for retrieving the tracker.
 
void CheckTracker (HumanoidControl humanoid, TrackerGetter getTracker)
 Function to check the status of a specific tracker.
 
void CheckTracker (HumanoidControl humanoid, TrackerGetter getTracker, Vector3 localPosition, Quaternion localRotation)
 Function to check the status of a specific tracker.
 
virtual Vector3 GetBonePosition (uint actorId, FacialBone boneId)
 
virtual Quaternion GetBoneRotation (uint actorId, FacialBone boneId)
 
virtual float GetBoneConfidence (uint actorId, FacialBone boneId)
 
virtual void StartTracker (HumanoidControl _humanoid)
 Start the tracker.
 
virtual void StartTracker ()
 Optional list of SubTrackers.
 
virtual void StopTracker ()
 Stop the tracker.
 
virtual void UpdateTracker ()
 Update the tracker state.
 
virtual void ShowTracker (bool shown)
 Show or hide the Tracker renderers.
 
virtual void Calibrate ()
 Calibrate the tracker.
 
virtual void AdjustTracking (Vector3 positionalDelta, Quaternion rotationalDelta)
 Adjust the position of the tracker by the given delat.
 

Public Attributes

HumanoidControl humanoid
 The humanoid for this tracker.
 
bool enabled
 Is this tracker enabled?
 
Status status
 The tracking Status of the tracker.
 
TrackerComponent trackerComponent
 The tracking device.
 

Properties

virtual HeadSensor headSensor [get]
 Get the sensor for the head.
 
virtual ArmSensor leftHandSensor [get]
 Get the sensor for the left hand.
 
virtual ArmSensor rightHandSensor [get]
 Get the sensor for the right hand.
 
virtual TorsoSensor hipsSensor [get]
 Get the sensor for the hips.
 
virtual LegSensor leftFootSensor [get]
 Get the sensor for the left foot.
 
virtual LegSensor rightFootSensor [get]
 Get the sensor for the right foot.
 
virtual HumanoidSensor[] sensors [get]
 The sensors for this tracker.
 
virtual string name [get]
 The name of this tracker.
 

Member Enumeration Documentation

◆ Status

The tracking status.

Enumerator
Unavailable 

The tracking device is not available.

Present 

The tracking device is available but not tracking.

Tracking 

The tracking device is actively tracking.

Member Function Documentation

◆ CheckTracker() [1/3]

virtual void Passer.Humanoid.HumanoidTracker.CheckTracker ( HumanoidControl  humanoid)
virtual

Check the status of the tracker.

Parameters
humanoidThe humanoid for which the tracker needs to be checked

Reimplemented in Passer.Humanoid.LeapTracker, and Passer.Humanoid.UnityXRTracker.

◆ TrackerGetter()

delegate TrackerComponent Passer.Humanoid.HumanoidTracker.TrackerGetter ( Transform  transform,
Vector3  localPosition,
Quaternion  localRotation 
)

Function delegate for retrieving the tracker.

Parameters
transformThe root transform to start the searching of the tracker
localPositionThe default local position of the tracker
localRotationThe default local rotation of the tracker
Returns
The tracker component found or created

The default position/rotation is relative to the humanoid's real world.

◆ CheckTracker() [2/3]

void Passer.Humanoid.HumanoidTracker.CheckTracker ( HumanoidControl  humanoid,
TrackerGetter  getTracker 
)

Function to check the status of a specific tracker.

Parameters
humanoidThe humanoid for which the tracker needs to be checked
getTrackerFunction delegate to retrieve the tracker

The default position/rotation for the tracker when created will be zero

◆ CheckTracker() [3/3]

void Passer.Humanoid.HumanoidTracker.CheckTracker ( HumanoidControl  humanoid,
TrackerGetter  getTracker,
Vector3  localPosition,
Quaternion  localRotation 
)

Function to check the status of a specific tracker.

Parameters
humanoidThe humanoid for which the tracker needs to be checked
getTrackerFunction delegate to retrieve the tracker
localPositionThe default local position of the tracker
localRotationThe default local rotation of the tracker

◆ StartTracker() [1/2]

virtual void Passer.Humanoid.HumanoidTracker.StartTracker ( HumanoidControl  _humanoid)
virtual

Start the tracker.

Reimplemented in Passer.Humanoid.LeapTracker, and Passer.Humanoid.UnityXRTracker.

◆ StartTracker() [2/2]

virtual void Passer.Tracking.Tracker.StartTracker ( )
virtualinherited

Optional list of SubTrackers.

Start the tracker

◆ StopTracker()

virtual void Passer.Tracking.Tracker.StopTracker ( )
virtualinherited

Stop the tracker.

Reimplemented in Passer.Humanoid.LeapTracker.

◆ UpdateTracker()

virtual void Passer.Tracking.Tracker.UpdateTracker ( )
virtualinherited

◆ ShowTracker()

virtual void Passer.Tracking.Tracker.ShowTracker ( bool  shown)
virtualinherited

Show or hide the Tracker renderers.

Parameters
shownRenderers are enabled when shown == true

◆ Calibrate()

virtual void Passer.Tracking.Tracker.Calibrate ( )
virtualinherited

Calibrate the tracker.

Reimplemented in Passer.Humanoid.UnityXRTracker.

◆ AdjustTracking()

virtual void Passer.Tracking.Tracker.AdjustTracking ( Vector3  positionalDelta,
Quaternion  rotationalDelta 
)
virtualinherited

Adjust the position of the tracker by the given delat.

Parameters
positionalDeltaThe positional delta to apply
rotationalDeltaThe rotational delta to apply

Property Documentation

◆ headSensor

virtual HeadSensor Passer.Humanoid.HumanoidTracker.headSensor
get

Get the sensor for the head.

Will return null when this sensor is not present

◆ leftHandSensor

virtual ArmSensor Passer.Humanoid.HumanoidTracker.leftHandSensor
get

Get the sensor for the left hand.

Will return null when this sensor is not present

◆ rightHandSensor

virtual ArmSensor Passer.Humanoid.HumanoidTracker.rightHandSensor
get

Get the sensor for the right hand.

Will return null when this sensor is not present

◆ hipsSensor

virtual TorsoSensor Passer.Humanoid.HumanoidTracker.hipsSensor
get

Get the sensor for the hips.

Will return null when this sensor is not present

◆ leftFootSensor

virtual LegSensor Passer.Humanoid.HumanoidTracker.leftFootSensor
get

Get the sensor for the left foot.

Will return null when this sensor is not present

◆ rightFootSensor

virtual LegSensor Passer.Humanoid.HumanoidTracker.rightFootSensor
get

Get the sensor for the right foot.

Will return null when this sensor is not present


The documentation for this class was generated from the following file: