FingerJoint
Represents a finger joint.
public class FingerJoint
Constructors
Name
Description
FingerJoint()
Creates a new FingerJoint object.
FingerJoint(FingerJoint)
Creates a new FingerJoint object by copying the data from the specified finger joint.
FingerJoint(FingerJointType, UnityEngine.Vector2, UnityEngine.Vector3, UnityEngine.Quaternion)
Creates a new FingerJoint object with the specified type, 2D position,3D position and 3D orientation of the finger joint.
Properties
Name
Type
Description
Methods
Name
Return Type
Description
ToString()
string
Converts the value of this instance to a string.
Equals(Finger)
bool
Determines whether the specified Finger object is equal to the current Finger object.
GetHashCode()
int
Returns a hash code for the current Finger object.
Example
The example shows how to create a finger joint with the FingerJoint
class.
Create a finger joint with the specified 2D position and 3D position
FingerJoint indexTip = new FingerJoint
(
FingerJointType.IndexTip,
new Vector2(3, 3),
new Vector3(0.3f, 0.3f, 0.3f),
new Quaternion()
);
Create a finger joint with the specified finger joint
FingerJoint indexTipNew = new FingerJoint(indexTip);
Create an empty finger joint
FingerJoint emptyJoint = new FingerJoint();
Last updated