API reference
API reference
Select your platform
No SDKs available
No versions available

OneGrabPhysicsJointTransformer Class

Extends MonoBehaviour, ITransformer
A Transformer that moves the target using Physics joints Updates an internal kinematic rigidbody attached with a joint to the grabbable.
It also supports adding custom joints for grabbing to improve stability on some constrained grabs.

Properties

bool IsKinematicGrab[Get]

Member Functions

Invoked by the owning IGrabbable as part of its own initialization, passing itself as grabbable so that the ITransformer can do any required initial setup.
Parameters
grabbable
The owning IGrabbable for this instance.
Invoked by the owning IGrabbable to instruct the ITransformer to start its procedural animation.
Typically, this is invoked in response to the start of a selecting grab interaction.
Invoked by the owning IGrabbable to instruct the ITransformer to advance to the next frame of its procedural animation.
Typically, this is invoked in response to the continuation of a selecting grab interaction.
Invoked by the owning IGrabbable to instruct the ITransformer to end its procedural animation.
Typically, this is invoked in response to the end of a selecting grab interaction.
void InjectOptionalCustomJoint
( ConfigurableJoint customJoint )
void InjectOptionalRigidbodiesRoot
( Transform rigidbodiesRoot )

Protected Functions

Creates a disabled GameObject for holding the data of the desired custom joint.
Returns
A children GameObject for holding joint data.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon