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

OneGrabTranslateTransformer Class

Extends MonoBehaviour
A Transformer that translates the target, with optional parent-space constraints

Properties

Constraints : OneGrabTranslateConstraints
[Get][Set]
Signature
OneGrabTranslateConstraints Oculus.Interaction.OneGrabTranslateTransformer.Constraints

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.OneGrabTranslateTransformer.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.OneGrabTranslateTransformer.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.OneGrabTranslateTransformer.Initialize(IGrabbable grabbable)
Parameters
grabbable: IGrabbable  The owning IGrabbable for this instance.
Returns
void
InjectOptionalConstraints ( constraints )
Signature
void Oculus.Interaction.OneGrabTranslateTransformer.InjectOptionalConstraints(OneGrabTranslateConstraints constraints)
Parameters
constraints: OneGrabTranslateConstraints
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.OneGrabTranslateTransformer.UpdateTransform()
Returns
void

Inner Class

OneGrabTranslateConstraints Class

Fields

ConstraintsAreRelative : bool
Signature
bool Oculus.Interaction.OneGrabTranslateTransformer.OneGrabTranslateConstraints.ConstraintsAreRelative
Signature
FloatConstraint Oculus.Interaction.OneGrabTranslateTransformer.OneGrabTranslateConstraints.MaxX
Signature
FloatConstraint Oculus.Interaction.OneGrabTranslateTransformer.OneGrabTranslateConstraints.MaxY
Signature
FloatConstraint Oculus.Interaction.OneGrabTranslateTransformer.OneGrabTranslateConstraints.MaxZ
Signature
FloatConstraint Oculus.Interaction.OneGrabTranslateTransformer.OneGrabTranslateConstraints.MinX
Signature
FloatConstraint Oculus.Interaction.OneGrabTranslateTransformer.OneGrabTranslateConstraints.MinY
Signature
FloatConstraint Oculus.Interaction.OneGrabTranslateTransformer.OneGrabTranslateConstraints.MinZ