HandPosing
A tool for quickly authoring hand poses to objects in VR using hand-tracking
|
This custom version of the Grabbable, uses physic Joints instead of transforms to move the object. More...
Public Member Functions | |
override void | GrabBegin (BaseGrabber hand) |
When the grab begins, create the joint that will held the object to the grabber. The Anchor points of the Joint specify the offset to the grabber here. If a custom joint was provided, duplicate it and mimic its values, if not it will use a fixe joint. More... | |
override void | GrabEnd (BaseGrabber hand, Vector3 linearVelocity, Vector3 angularVelocity) |
When the object is released, remove the joint associated to the hand. More... | |
override void | MoveTo (Vector3 desiredPos, Quaternion desiredRot) |
Since Joints are automatically holding the grabbable to the grabber, this method is empty. More... | |
Public Member Functions inherited from HandPosing.Interaction.Grabbable | |
void | UnsuscribeGrabber () |
Clear all grabs on this object. More... | |
Protected Member Functions | |
GameObject | CreateJointHolder () |
Creates a disabled GameObject for holding the data of the desired Custom Joint. More... | |
Protected Member Functions inherited from HandPosing.Interaction.Grabbable | |
virtual void | Awake () |
Properties | |
override bool | MultiGrab [get] |
Properties inherited from HandPosing.Interaction.Grabbable | |
Rigidbody | Body [get] |
bool | IsGrabbed [get] |
True if the object is being held by a Grabber. More... | |
Collider[] | GrabPoints [get] |
General getter for the colliders eligible for grabbing. More... | |
virtual bool | MultiGrab [get] |
True if the object can be held by multiple hands. Note: here not implemented, but supported by the class PhysicsGrabbable instead More... | |
Additional Inherited Members | |
Public Attributes inherited from HandPosing.Interaction.Grabbable | |
Action< BaseGrabber > | OnGrabbed |
Event called when the object is grabbed More... | |
Action< BaseGrabber > | OnReleased |
Event called when the object is released More... | |
Protected Attributes inherited from HandPosing.Interaction.Grabbable | |
bool | immovable |
Set to true to avoid the Grabber to move this grabbable More... | |
Rigidbody | _body |
This custom version of the Grabbable, uses physic Joints instead of transforms to move the object.
It support setting a custom joint for the grab, which can be specially useful when the grabbable has some constraints (a lever, a turning wheel) as it does not need to follow exactly the position of the hand.
|
protected |
Creates a disabled GameObject for holding the data of the desired Custom Joint.
|
virtual |
When the grab begins, create the joint that will held the object to the grabber. The Anchor points of the Joint specify the offset to the grabber here. If a custom joint was provided, duplicate it and mimic its values, if not it will use a fixe joint.
hand | The grabber hand |
Reimplemented from HandPosing.Interaction.Grabbable.
|
virtual |
When the object is released, remove the joint associated to the hand.
hand | Hand that released the object. |
linearVelocity | Linear velocity of the throw. |
angularVelocity | Angular velocity of the throw. |
Reimplemented from HandPosing.Interaction.Grabbable.
|
virtual |
Since Joints are automatically holding the grabbable to the grabber, this method is empty.
desiredPos | The desired position of the grabbable. |
desiredRot | The desired rotation of the grabbable. |
Reimplemented from HandPosing.Interaction.Grabbable.