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

OneGrabPhysicsJointTransformer Class

Extends MonoBehaviour
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

IsKinematicGrab : bool
[Get][Set]
Signature
bool Oculus.Interaction.OneGrabPhysicsJointTransformer.IsKinematicGrab

Protected Methods

CreateJointHolder ()
Creates a disabled GameObject for holding the data of the desired custom joint.
Signature
GameObject Oculus.Interaction.OneGrabPhysicsJointTransformer.CreateJointHolder()
Returns
GameObject  A children GameObject for holding joint data.

Methods

BeginTransform ()
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.
Signature
void Oculus.Interaction.OneGrabPhysicsJointTransformer.BeginTransform()
Returns
void
EndTransform ()
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.
Signature
void Oculus.Interaction.OneGrabPhysicsJointTransformer.EndTransform()
Returns
void
Initialize ( grabbable )
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.
Signature
void Oculus.Interaction.OneGrabPhysicsJointTransformer.Initialize(IGrabbable grabbable)
Parameters
grabbable: IGrabbable  The owning IGrabbable for this instance.
Returns
void
InjectOptionalCustomJoint ( customJoint )
Signature
void Oculus.Interaction.OneGrabPhysicsJointTransformer.InjectOptionalCustomJoint(ConfigurableJoint customJoint)
Parameters
customJoint: ConfigurableJoint
Returns
void
InjectOptionalRigidbodiesRoot ( rigidbodiesRoot )
Signature
void Oculus.Interaction.OneGrabPhysicsJointTransformer.InjectOptionalRigidbodiesRoot(Transform rigidbodiesRoot)
Parameters
rigidbodiesRoot: Transform
Returns
void
UpdateTransform ()
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.
Signature
void Oculus.Interaction.OneGrabPhysicsJointTransformer.UpdateTransform()
Returns
void