Humanoid Control for Unity v4
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
Passer.Humanoid.Tracking.Sensor Class Reference

Description

Humanoid Tracking sensor

Inheritance diagram for Passer.Humanoid.Tracking.Sensor:
Passer.Humanoid.HumanoidSensor Passer.Humanoid.ArmSensor Passer.Humanoid.HeadSensor Passer.Humanoid.CustomHead Passer.Humanoid.ViveTrackerHead

Public Types

enum  ID {
  Head , LeftHand , RightHand , Hips ,
  LeftFoot , RightFoot , Tracker1 , Tracker2 ,
  Tracker3 , Tracker4 , Count
}
 

Public Member Functions

 Sensor (DeviceView _device)
 Create new sensor the the device More...
 
virtual Tracker.Status Update ()
 Update the sensor state More...
 

Static Public Member Functions

static Rotation CalculateBoneRotation (Vector bonePosition, Vector parentBonePosition, Vector upDirection)
 

Public Attributes

DeviceView device
 The device to which the sensor belongs
 
Tracker.Status status = Tracker.Status.Unavailable
 Status of the sensor
 

Protected Member Functions

void UpdateSensor ()
 

Protected Attributes

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
 

Properties

Vector localSensorPosition [get]
 
Rotation localSensorRotation [get]
 
Vector sensorPosition [get]
 
Rotation sensorRotation [get]
 
float positionConfidence [get]
 
float rotationConfidence [get]
 
Vector sensor2TargetPosition [getset]
 
Rotation sensor2TargetRotation [getset]
 

Constructor & Destructor Documentation

◆ Sensor()

Passer.Humanoid.Tracking.Sensor.Sensor ( DeviceView  _device)

Create new sensor the the device

Parameters
_device

Member Function Documentation

◆ Update()

virtual Tracker.Status Passer.Humanoid.Tracking.Sensor.Update ( )
virtual

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