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

GrabFreeTransformer Class

Extends MonoBehaviour
An ITransformer that can translate, rotate and scale a transform using any number of grab points while also constraining the transformation if desired.
This is the default Interaction SDK grab behavior and should be preferred over older implementations such as OneGrabFreeTransformer and TwoGrabFreeTransformer.

Methods

BeginTransform ()
Implementation of ITransformer.BeginTransform; for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.GrabFreeTransformer.BeginTransform()
Returns
void
EndTransform ()
Implementation of ITransformer.EndTransform; for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.GrabFreeTransformer.EndTransform()
Returns
void
Initialize ( grabbable )
Implementation of ITransformer.Initialize(IGrabbable); for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.GrabFreeTransformer.Initialize(IGrabbable grabbable)
Parameters
grabbable: IGrabbable
Returns
void
InjectOptionalPositionConstraints ( constraints )
Sets the optional TransformerUtils.PositionConstraints for a dynamically-allocated GrabFreeTransformer instance.
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.GrabFreeTransformer.InjectOptionalPositionConstraints(TransformerUtils.PositionConstraints constraints)
Parameters
constraints: TransformerUtils.PositionConstraints
Returns
void
InjectOptionalRotationConstraints ( constraints )
Sets the optional TransformerUtils.RotationConstraints for a dynamically-allocated GrabFreeTransformer instance.
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.GrabFreeTransformer.InjectOptionalRotationConstraints(TransformerUtils.RotationConstraints constraints)
Parameters
constraints: TransformerUtils.RotationConstraints
Returns
void
InjectOptionalScaleConstraints ( constraints )
Sets the optional TransformerUtils.ScaleConstraints for a dynamically-allocated GrabFreeTransformer instance.
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.GrabFreeTransformer.InjectOptionalScaleConstraints(TransformerUtils.ScaleConstraints constraints)
Parameters
constraints: TransformerUtils.ScaleConstraints
Returns
void
UpdateTransform ()
Implementation of ITransformer.UpdateTransform; for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.GrabFreeTransformer.UpdateTransform()
Returns
void