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

OneGrabRotateTransformer Class

Extends MonoBehaviour
A Transformer 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
Signature
Axis Oculus.Interaction.OneGrabRotateTransformer.RotationAxis

Properties

Constraints : OneGrabRotateConstraints
[Get][Set]
Signature
OneGrabRotateConstraints Oculus.Interaction.OneGrabRotateTransformer.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.OneGrabRotateTransformer.BeginTransform()
Returns
void
ComputeWorldPivotPose ()
Signature
Pose Oculus.Interaction.OneGrabRotateTransformer.ComputeWorldPivotPose()
Returns
Pose
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.OneGrabRotateTransformer.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.OneGrabRotateTransformer.Initialize(IGrabbable grabbable)
Parameters
grabbable: IGrabbable  The owning IGrabbable for this instance.
Returns
void
InjectOptionalConstraints ( constraints )
Signature
void Oculus.Interaction.OneGrabRotateTransformer.InjectOptionalConstraints(OneGrabRotateConstraints constraints)
Parameters
constraints: OneGrabRotateConstraints
Returns
void
InjectOptionalPivotTransform ( pivotTransform )
Signature
void Oculus.Interaction.OneGrabRotateTransformer.InjectOptionalPivotTransform(Transform pivotTransform)
Parameters
pivotTransform: Transform
Returns
void
InjectOptionalRotationAxis ( rotationAxis )
Signature
void Oculus.Interaction.OneGrabRotateTransformer.InjectOptionalRotationAxis(Axis rotationAxis)
Parameters
rotationAxis: Axis
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.OneGrabRotateTransformer.UpdateTransform()
Returns
void

Inner Class

OneGrabRotateConstraints Class

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