Tanoda
|
Public Member Functions | |
override void | InitFinger () |
override void | UpdateFinger () |
![]() | |
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 | |
int | sides = 4 |
bool | smoothNormals = false |
float | startingAngle = 0.0f |
float[] | widths = new float[NUM_JOINTS] |
![]() | |
Finger.FingerType | fingerType = Finger.FingerType.TYPE_INDEX |
Transform[] | bones = new Transform[NUM_BONES] |
Transform[] | joints = new Transform[NUM_BONES - 1] |
Protected Member Functions | |
Quaternion | GetJointRotation (int joint) |
void | InitJointVertices () |
void | UpdateMesh () |
void | UpdateCapMesh () |
void | InitMesh () |
void | InitCapsMesh () |
Protected Attributes | |
Vector3[] | vertices_ |
Vector3[] | normals_ |
Vector3[] | joint_vertices_ |
Mesh | mesh_ |
Mesh | cap_mesh_ |
Vector3[] | cap_vertices_ |
![]() | |
Hand | hand_ |
Finger | finger_ |
Additional Inherited Members | |
![]() | |
const int | NUM_BONES = 4 |
const int | NUM_JOINTS = 3 |
Draws the bones of the finger as a polygonal tube.
Definition at line 16 of file PolyFinger.cs.
|
protected |
Definition at line 84 of file PolyFinger.cs.
|
protected |
Definition at line 206 of file PolyFinger.cs.
|
virtual |
Creates the finger mesh.
Reimplemented from Leap.Unity.FingerModel.
Definition at line 39 of file PolyFinger.cs.
|
protected |
Definition at line 93 of file PolyFinger.cs.
|
protected |
Definition at line 164 of file PolyFinger.cs.
|
protected |
Definition at line 146 of file PolyFinger.cs.
|
virtual |
|
protected |
Definition at line 101 of file PolyFinger.cs.
|
protected |
Definition at line 35 of file PolyFinger.cs.
|
protected |
Definition at line 36 of file PolyFinger.cs.
|
protected |
Definition at line 32 of file PolyFinger.cs.
|
protected |
Definition at line 34 of file PolyFinger.cs.
|
protected |
Definition at line 31 of file PolyFinger.cs.
int Leap.Unity.PolyFinger.sides = 4 |
The number of sides for finger tube.
Definition at line 23 of file PolyFinger.cs.
bool Leap.Unity.PolyFinger.smoothNormals = false |
Whether to smooth the mesh normals, providing a smoother appearance.
Definition at line 25 of file PolyFinger.cs.
float Leap.Unity.PolyFinger.startingAngle = 0.0f |
Definition at line 26 of file PolyFinger.cs.
|
protected |
Definition at line 30 of file PolyFinger.cs.
float [] Leap.Unity.PolyFinger.widths = new float[NUM_JOINTS] |
An array containing the width of the finger at each joint.
Definition at line 28 of file PolyFinger.cs.