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

Description

Leap Motion Hand to on the arm of a Humanoid

Unity Inspector

Hands are fully tracked (positional and rotational) while the hands are in the tracking range of the Leap Motion. Full hand movements are supported with bending values for each finger individually while the hands are in the tracking range of the Leap Motion.

Inherits Passer.Humanoid.Tracking.ArmSensor.

Public Types

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

Public Member Functions

override void CheckSensor (HandTarget handTarget)
 
override void Start (HumanoidControl _humanoid, Transform targetTransform)
 
override void Update ()
 Update the sensor state.
 

Static Public Member Functions

static Rotation CalculateUpperArmOrientation (Vector upperArmPosition, float upperArmLength, Vector forearmUp, float forearmLength, Vector handPosition, bool isLeft)
 
static Rotation CalculateArmOrientation (Vector joint1Position, Vector joint1Up, Vector joint2Position, bool isLeft)
 
static Rotation CalculateBoneRotation (Vector bonePosition, Vector parentBonePosition, Vector upDirection)
 

Public Attributes

bool isLeft
 
TargetData shoulder
 
TargetData upperArm
 
TargetData forearm
 
TargetData hand
 
Finger thumb
 
Finger indexFinger
 
Finger middleFinger
 
Finger ringFinger
 
Finger littleFinger
 
Finger[] fingers
 
DeviceView device
 The device to which the sensor belongs.
 
Tracker.Status status = Tracker.Status.Unavailable
 Status of the sensor.
 

Protected Member Functions

virtual void UpdateHand ()
 
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

override string name [get]
 
override HumanoidTracker tracker [get]
 
LeapTracker leapTracker [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]
 

Member Function Documentation

◆ Update()

override void Passer.Humanoid.LeapHand.Update ( )
virtual

Update the sensor state.

Returns
Status of the sensor after the update

Reimplemented from Passer.Humanoid.Tracking.Sensor.


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