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

Description

An sensor used on the arm of a humanoid.

Inheritance diagram for Passer.Humanoid.ArmSensor:
Passer.Humanoid.HumanoidSensor Passer.Humanoid.Tracking.Sensor

Public Types

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

Public Member Functions

virtual void CheckSensor (HandTarget _handTarget)
 Checks if a sensorComponent is present and will create one if it does not exist.
 
virtual void Init (HandTarget handTarget)
 
override void Start (HumanoidControl _humanoid, Transform targetTransform)
 
void InitController (SerializedProperty sensorProp, HandTarget handTarget)
 
void RemoveController (SerializedProperty sensorProp)
 
void CheckSensorTransform (Transform targetTransform, bool isLeft)
 
virtual void CreateSensorTransform (Transform targetTransform, bool isLeft)
 
override void SetSensor2Target ()
 
virtual void SetSensor2Target (Vector3 targetPosition, Quaternion targetRotation)
 
float ArmConfidence (Humanoid.Tracking.ArmSensor armSensor)
 
virtual void Vibrate (float length, float strength)
 
virtual void CheckSensorTransform ()
 
override void Update ()
 Update the sensor state.
 
virtual void UpdateSensorTransformFromTarget (Transform targetTransform)
 
virtual void Stop ()
 
virtual void RefreshSensor ()
 
virtual void ShowSensor (HumanoidTarget target, bool shown)
 

Static Public Member Functions

static Vector3 InverseTransformPointUnscaled (Transform transform, Vector3 position)
 
static Rotation CalculateBoneRotation (Vector bonePosition, Vector parentBonePosition, Vector upDirection)
 

Public Attributes

HandSkeleton handSkeleton
 The sensor used for this arm.
 
Vector3 sensor2TargetPosition
 
Quaternion sensor2TargetRotation
 
DeviceView device
 The device to which the sensor belongs.
 
Tracker.Status status = Tracker.Status.Unavailable
 Status of the sensor.
 

Static Public Attributes

const string _name = ""
 

Protected Member Functions

virtual HandSkeleton FindHandSkeleton (bool isLeft)
 
virtual HandSkeleton CreateHandSkeleton (bool isLeft, bool showRealObjects)
 
virtual void CreateSensorTransform (string resourceName, Vector3 sensor2TargetPosition, Quaternion sensor2TargetRotation)
 
void UpdateArm (Humanoid.Tracking.ArmSensor armSensor)
 
void UpdateShoulder (Humanoid.Tracking.ArmSensor armSensor)
 
virtual void UpdateUpperArm (Humanoid.Tracking.ArmSensor armSensor)
 
virtual void UpdateForearm (Humanoid.Tracking.ArmSensor armSensor)
 
virtual void UpdateHand (Humanoid.Tracking.ArmSensor armSensor)
 
virtual void UpdateHandTargetTransform (Humanoid.Tracking.ArmSensor armSensor)
 
virtual void UpdateFingers (Humanoid.Tracking.ArmSensor armSensor)
 
virtual void UpdateHandFromSkeleton ()
 
virtual void UpdateThumbFromSkeleton ()
 
void UpdateIndexFingerFromSkeleton ()
 
void UpdateMiddleFingerFromSkeleton ()
 
void UpdateRingFingerFromSkeleton ()
 
void UpdateLittleFingerFromSkeleton ()
 
virtual void UpdateFingerBoneFromSkeleton (Transform targetTransform, Finger finger, FingerBone fingerBone)
 
virtual void CreateSensorTransform ()
 
void CreateSensorTransform (Transform targetTransform, string resourceName, Vector3 _sensor2TargetPosition, Quaternion _sensor2TargetRotation)
 
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 ()
 

Static Protected Member Functions

static Vector3 TransformPointUnscaled (Transform transform, Vector3 position)
 

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

HandTarget handTarget [get]
 The HandTarget for this sensor.
 
HumanoidControl humanoid [get]
 The Humanoid for this sensor.
 
virtual new HumanoidTracker tracker [get]
 
override string name [get]
 
Vector localSensorPosition [get]
 
Rotation localSensorRotation [get]
 
Vector sensorPosition [get]
 
Rotation sensorRotation [get]
 
float positionConfidence [get]
 
float rotationConfidence [get]
 

Member Function Documentation

◆ CheckSensor()

virtual void Passer.Humanoid.ArmSensor.CheckSensor ( HandTarget  _handTarget)
virtual

Checks if a sensorComponent is present and will create one if it does not exist.

Parameters
_handTargetThe HandTarget to which the sensor is assigned

◆ Start()

override void Passer.Humanoid.ArmSensor.Start ( HumanoidControl  _humanoid,
Transform  targetTransform 
)
virtual

Reimplemented from Passer.Humanoid.HumanoidSensor.

◆ SetSensor2Target()

override void Passer.Humanoid.ArmSensor.SetSensor2Target ( )
virtual

Reimplemented from Passer.Humanoid.HumanoidSensor.

◆ Update()

override void Passer.Humanoid.HumanoidSensor.Update ( )
virtualinherited

Update the sensor state.

Returns
Status of the sensor after the update

Reimplemented from Passer.Humanoid.Tracking.Sensor.

Member Data Documentation

◆ handSkeleton

HandSkeleton Passer.Humanoid.ArmSensor.handSkeleton

The sensor used for this arm.

The skeleton for the hand


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