Tanoda
Leap.Unity.SkeletalHand Class Reference
Inheritance diagram for Leap.Unity.SkeletalHand:
Leap.Unity.HandModel Leap.Unity.HandModelBase Leap.Unity.RigidHand

Public Member Functions

override void UpdateHand ()
 
- Public Member Functions inherited from Leap.Unity.HandModel
Vector3 GetPalmPosition ()
 
Quaternion GetPalmRotation ()
 
Vector3 GetPalmDirection ()
 
Vector3 GetPalmNormal ()
 
Vector3 GetArmDirection ()
 
Vector3 GetArmCenter ()
 
float GetArmLength ()
 
float GetArmWidth ()
 
Vector3 GetElbowPosition ()
 
Vector3 GetWristPosition ()
 
Quaternion GetArmRotation ()
 
override Hand GetLeapHand ()
 
override void SetLeapHand (Hand hand)
 
override void InitHand ()
 
int LeapID ()
 
abstract override void UpdateHand ()
 
- Public Member Functions inherited from Leap.Unity.HandModelBase
virtual void InitHand ()
 
virtual void BeginHand ()
 
abstract void UpdateHand ()
 
void UpdateHandWithEvent ()
 
virtual void FinishHand ()
 
abstract Hand GetLeapHand ()
 
abstract void SetLeapHand (Hand hand)
 
virtual bool SupportsEditorPersistence ()
 Returns whether or not this hand model supports editor persistence. This is false by default and must be opt-in by a developer making their own hand model script if they want editor persistence. More...
 

Protected Member Functions

Vector3 GetPalmCenter ()
 
void SetPositions ()
 

Static Protected Attributes

const float PALM_CENTER_OFFSET = 0.015f
 

Properties

override ModelType HandModelType [get]
 
- Properties inherited from Leap.Unity.HandModel
override Chirality Handedness [get, set]
 
abstract override ModelType HandModelType [get]
 
- Properties inherited from Leap.Unity.HandModelBase
bool IsTracked [get]
 
abstract Chirality Handedness [get, set]
 
abstract ModelType HandModelType [get]
 

Additional Inherited Members

- Public Attributes inherited from Leap.Unity.HandModel
float handModelPalmWidth = 0.085f
 
FingerModel[] fingers = new FingerModel[NUM_FINGERS]
 
Transform palm
 
Transform forearm
 
Transform wristJoint
 
Transform elbowJoint
 
- Public Attributes inherited from Leap.Unity.HandModelBase
HandModelManager.ModelGroup group
 
- Static Public Attributes inherited from Leap.Unity.HandModel
const int NUM_FINGERS = 5
 
- Protected Attributes inherited from Leap.Unity.HandModel
Hand hand_
 
- Events inherited from Leap.Unity.HandModelBase
Action OnBegin
 
Action OnFinish
 
Action OnUpdate
 Called directly after the HandModelBase's UpdateHand(). More...
 

Detailed Description

A hand object consisting of discrete, component parts.

The hand can have game objects for the palm, wrist and forearm, as well as fingers.

Definition at line 19 of file SkeletalHand.cs.

Member Function Documentation

◆ GetPalmCenter()

Vector3 Leap.Unity.SkeletalHand.GetPalmCenter ( )
protected

Definition at line 43 of file SkeletalHand.cs.

◆ SetPositions()

void Leap.Unity.SkeletalHand.SetPositions ( )
protected

Definition at line 48 of file SkeletalHand.cs.

◆ UpdateHand()

override void Leap.Unity.SkeletalHand.UpdateHand ( )
virtual

Updates the hand and its component parts by setting their positions and rotations.

Implements Leap.Unity.HandModel.

Definition at line 39 of file SkeletalHand.cs.

Member Data Documentation

◆ PALM_CENTER_OFFSET

const float Leap.Unity.SkeletalHand.PALM_CENTER_OFFSET = 0.015f
staticprotected

Definition at line 25 of file SkeletalHand.cs.

Property Documentation

◆ HandModelType

override ModelType Leap.Unity.SkeletalHand.HandModelType
get

Definition at line 20 of file SkeletalHand.cs.


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