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

GrabFreePhysicsTransformer Class

Extends MonoBehaviour
An ITransformer that can translate and rotate a rigidbody using any number of grab points applying velocities directly so it can still interact with other colliders.
See GrabFreeTransformer for a version that applies movement to the transform directly.

Properties

AngularVelocityFactor : float
[Get][Set]
Strength of the angular velocity applied during fixed update
Signature
float Oculus.Interaction.GrabFreePhysicsTransformer.AngularVelocityFactor
MaxAngularDelta : float
[Get][Set]
Maximum delta for the angular velocity applied during fixed update
Signature
float Oculus.Interaction.GrabFreePhysicsTransformer.MaxAngularDelta
MaxLinearDelta : float
[Get][Set]
Maximum delta for the linear velocity applied during fixed update
Signature
float Oculus.Interaction.GrabFreePhysicsTransformer.MaxLinearDelta
VelocityFactor : float
[Get][Set]
Strength of the velocity applied during fixed update
Signature
float Oculus.Interaction.GrabFreePhysicsTransformer.VelocityFactor

Protected Methods

Reset ()
Signature
virtual void Oculus.Interaction.GrabFreePhysicsTransformer.Reset()
Returns
void

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.GrabFreePhysicsTransformer.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.GrabFreePhysicsTransformer.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.GrabFreePhysicsTransformer.Initialize(IGrabbable grabbable)
Parameters
grabbable: IGrabbable  The owning IGrabbable for this instance.
Returns
void
InjectOptionalRigidbody ( rigidbody )
Signature
void Oculus.Interaction.GrabFreePhysicsTransformer.InjectOptionalRigidbody(Rigidbody rigidbody)
Parameters
rigidbody: Rigidbody
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.GrabFreePhysicsTransformer.UpdateTransform()
Returns
void