Tanoda
Leap.Unity.RigidFinger Class Reference
Inheritance diagram for Leap.Unity.RigidFinger:
Leap.Unity.SkeletalFinger Leap.Unity.FingerModel

Public Member Functions

override void UpdateFinger ()
 
- Public Member Functions inherited from Leap.Unity.SkeletalFinger
override void InitFinger ()
 
override void UpdateFinger ()
 
- Public Member Functions inherited from Leap.Unity.FingerModel
void SetLeapHand (Hand hand)
 
Hand GetLeapHand ()
 
Finger GetLeapFinger ()
 
virtual void InitFinger ()
 
abstract void UpdateFinger ()
 
Vector3 GetTipPosition ()
 
Vector3 GetJointPosition (int joint)
 
Ray GetRay ()
 
Vector3 GetBoneCenter (int bone_type)
 
Vector3 GetBoneDirection (int bone_type)
 
Quaternion GetBoneRotation (int bone_type)
 
float GetBoneLength (int bone_type)
 
float GetBoneWidth (int bone_type)
 
float GetFingerJointStretchMecanim (int joint_type)
 
float GetFingerJointSpreadMecanim ()
 

Public Attributes

float filtering = 0.5f
 
- Public Attributes inherited from Leap.Unity.FingerModel
Finger.FingerType fingerType = Finger.FingerType.TYPE_INDEX
 
Transform[] bones = new Transform[NUM_BONES]
 
Transform[] joints = new Transform[NUM_BONES - 1]
 

Additional Inherited Members

- Static Public Attributes inherited from Leap.Unity.FingerModel
const int NUM_BONES = 4
 
const int NUM_JOINTS = 3
 
- Protected Member Functions inherited from Leap.Unity.SkeletalFinger
void SetPositions ()
 
- Protected Attributes inherited from Leap.Unity.FingerModel
Hand hand_
 
Finger finger_
 

Detailed Description

A physics finger model for our rigid hand made out of various cube Unity Colliders.

Definition at line 15 of file RigidFinger.cs.

Member Function Documentation

◆ UpdateFinger()

override void Leap.Unity.RigidFinger.UpdateFinger ( )
virtual

Implement this function to update this finger once per game loop. Typically, this function is called by the parent HandModel object's UpdateHand() function, which is called in the Unity Update() phase for graphics hand models and in the FixedUpdate() phase for physics hand models.

Implements Leap.Unity.FingerModel.

Definition at line 27 of file RigidFinger.cs.

Member Data Documentation

◆ filtering

float Leap.Unity.RigidFinger.filtering = 0.5f

Definition at line 17 of file RigidFinger.cs.


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