API reference

OneGrabRotateTransformer Class

Extends MonoBehaviour
An ITransformer that rotates the target about an axis.
Updates apply relative rotational changes of a GrabPoint about an axis. The axis is defined by a pivot transform: a world position and up vector.

Fields

Pivot : Transform
Signature
Transform Oculus.Interaction.OneGrabRotateTransformer.Pivot
RotationAxis : Axis
The axis that this transformer will rotate around.
Signature
Axis Oculus.Interaction.OneGrabRotateTransformer.RotationAxis

Properties

Constraints : OneGrabRotateConstraints
[Get][Set]
The current OneGrabRotateConstraints that are being used by this instance.
Signature
OneGrabRotateConstraints Oculus.Interaction.OneGrabRotateTransformer.Constraints

Methods

BeginTransform ()
Implementation of ITransformer.BeginTransform; for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.OneGrabRotateTransformer.BeginTransform()
Returns
void
ComputeWorldPivotPose ()
Computes the pose of the rotational pivot, in world space.
Signature
Pose Oculus.Interaction.OneGrabRotateTransformer.ComputeWorldPivotPose()
Returns
Pose  The world space pose of the rotational pivot.
EndTransform ()
Implementation of ITransformer.EndTransform; for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.OneGrabRotateTransformer.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.OneGrabRotateTransformer.Initialize(IGrabbable grabbable)
Parameters
grabbable: IGrabbable
Returns
void
InjectOptionalConstraints ( constraints )
Sets the underlying OneGrabRotateConstraints for a dynamically instantiated OneGrabRotateTransformer.
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.OneGrabRotateTransformer.InjectOptionalConstraints(OneGrabRotateConstraints constraints)
Parameters
constraints: OneGrabRotateConstraints
Returns
void
InjectOptionalPivotTransform ( pivotTransform )
Injects all required dependencies for a dynamically instantiated OneGrabRotateTransformer.
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.OneGrabRotateTransformer.InjectOptionalPivotTransform(Transform pivotTransform)
Parameters
pivotTransform: Transform
Returns
void
InjectOptionalRotationAxis ( rotationAxis )
Sets the underlying optional rotational Axis for a dynamically instantiated OneGrabRotateTransformer.
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.OneGrabRotateTransformer.InjectOptionalRotationAxis(Axis rotationAxis)
Parameters
rotationAxis: Axis
Returns
void
UpdateTransform ()
Implementation of ITransformer.UpdateTransform; for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.OneGrabRotateTransformer.UpdateTransform()
Returns
void

Inner Class

OneGrabRotateConstraints Class

Constraints that determine the minimum and maximum rotation angle for this transormer.

Fields

MaxAngle : FloatConstraint
Signature
FloatConstraint Oculus.Interaction.OneGrabRotateTransformer.OneGrabRotateConstraints.MaxAngle
MinAngle : FloatConstraint
Signature
FloatConstraint Oculus.Interaction.OneGrabRotateTransformer.OneGrabRotateConstraints.MinAngle

Inner Enum

Axis Enum

Enumeration Constants

MemberValue
Right
0
Up
1
Forward
2