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

OneGrabPhysicsJointTransformer Class

Extends MonoBehaviour
An ITransformer 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]
Indicates if the grabbing rigidbody should be kinematic or not.
Non-kinematic grabs can be interesting for simulating weight or more robust interactions.
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 ()
Implementation of ITransformer.BeginTransform; for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.OneGrabPhysicsJointTransformer.BeginTransform()
Returns
void
EndTransform ()
Implementation of ITransformer.EndTransform; for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.OneGrabPhysicsJointTransformer.EndTransform()
Returns
void
Initialize ( grabbable )
Implementation of ITransformer.Initialize; for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.OneGrabPhysicsJointTransformer.Initialize(IGrabbable grabbable)
Parameters
grabbable: IGrabbable
Returns
void
InjectOptionalCustomJoint ( customJoint )
Injects all required dependencies for a dynamically instantiated OneGrabPhysicsJointTransformer.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.OneGrabPhysicsJointTransformer.InjectOptionalCustomJoint(ConfigurableJoint customJoint)
Parameters
customJoint: ConfigurableJoint
Returns
void
InjectOptionalRigidbodiesRoot ( rigidbodiesRoot )
Sets the underlying root Transform for a dynamically instantiated OneGrabPhysicsJointTransformer.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.OneGrabPhysicsJointTransformer.InjectOptionalRigidbodiesRoot(Transform rigidbodiesRoot)
Parameters
rigidbodiesRoot: Transform
Returns
void
UpdateTransform ()
Implementation of ITransformer.UpdateTransform; for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.OneGrabPhysicsJointTransformer.UpdateTransform()
Returns
void