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

Public Member Functions

override 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...
 
override void InitHand ()
 
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

void SetPalmOrientation ()
 

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 deforming, very low poly count hand.

All the graphics for this hand are drawn by the fingers. There is no representation for the palm or the arm.

Definition at line 20 of file PolyHand.cs.

Member Function Documentation

◆ InitHand()

override void Leap.Unity.PolyHand.InitHand ( )
virtual

Initializes the hand and calls the finger initializers.

Reimplemented from Leap.Unity.HandModel.

Definition at line 30 of file PolyHand.cs.

◆ SetPalmOrientation()

void Leap.Unity.PolyHand.SetPalmOrientation ( )
protected

Sets the palm transform.

Definition at line 53 of file PolyHand.cs.

◆ SupportsEditorPersistence()

override bool Leap.Unity.PolyHand.SupportsEditorPersistence ( )
virtual

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.

Reimplemented from Leap.Unity.HandModelBase.

Definition at line 26 of file PolyHand.cs.

◆ UpdateHand()

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

Updates the hand and calls the finger update functions.

Implements Leap.Unity.HandModel.

Definition at line 42 of file PolyHand.cs.

Property Documentation

◆ HandModelType

override ModelType Leap.Unity.PolyHand.HandModelType
get

Definition at line 21 of file PolyHand.cs.


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