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

OneGrabTranslateTransformer Class

Extends MonoBehaviour
An ITransformer that translates the target with optional parent-space constraints.

Properties

Constraints : OneGrabTranslateConstraints
[Get][Set]
The OneGrabTranslateConstraints that will be used by this instance.
Determines how the target can be moved relative to the parent.
Signature
OneGrabTranslateConstraints Oculus.Interaction.OneGrabTranslateTransformer.Constraints

Methods

BeginTransform ()
Implementation of ITransformer.BeginTransform; for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.OneGrabTranslateTransformer.BeginTransform()
Returns
void
EndTransform ()
Implementation of ITransformer.EndTransform; for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.OneGrabTranslateTransformer.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.OneGrabTranslateTransformer.Initialize(IGrabbable grabbable)
Parameters
grabbable: IGrabbable
Returns
void
InjectOptionalConstraints ( constraints )
Sets the underlying optional OneGrabTranslateConstraints for a dynamically instantiated OneGrabTranslateTransformer.
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.OneGrabTranslateTransformer.InjectOptionalConstraints(OneGrabTranslateConstraints constraints)
Parameters
constraints: OneGrabTranslateConstraints
Returns
void
UpdateTransform ()
Implementation of ITransformer.UpdateTransform; for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.OneGrabTranslateTransformer.UpdateTransform()
Returns
void

Inner Class

OneGrabTranslateConstraints Class

The set of parent-space constraints used by OneGrabTranslateTransformer.

Fields

ConstraintsAreRelative : bool
If constraints are relative, they will be recomputed relative to the starting position of the target, rather than absolutely.
Signature
bool Oculus.Interaction.OneGrabTranslateTransformer.OneGrabTranslateConstraints.ConstraintsAreRelative
MaxX : FloatConstraint
The maximum x-axis translation allowed.
Signature
FloatConstraint Oculus.Interaction.OneGrabTranslateTransformer.OneGrabTranslateConstraints.MaxX
MaxY : FloatConstraint
The maximum y-axis translation allowed.
Signature
FloatConstraint Oculus.Interaction.OneGrabTranslateTransformer.OneGrabTranslateConstraints.MaxY
MaxZ : FloatConstraint
The maximum z-axis translation allowed.
Signature
FloatConstraint Oculus.Interaction.OneGrabTranslateTransformer.OneGrabTranslateConstraints.MaxZ
MinX : FloatConstraint
The minimum x-axis translation allowed.
Signature
FloatConstraint Oculus.Interaction.OneGrabTranslateTransformer.OneGrabTranslateConstraints.MinX
MinY : FloatConstraint
The minimum y-axis translation allowed.
Signature
FloatConstraint Oculus.Interaction.OneGrabTranslateTransformer.OneGrabTranslateConstraints.MinY
MinZ : FloatConstraint
The minimum z-axis translation allowed.
Signature
FloatConstraint Oculus.Interaction.OneGrabTranslateTransformer.OneGrabTranslateConstraints.MinZ