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

OneGrabRotateTransformer Class

Extends MonoBehaviour, ITransformer
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.

Member Enumerations

Enumeration Axis

Right
= 0
Up
= 1
Forward
= 2

Fields

Transform Pivot[Get]
The axis that this transformer will rotate around.

Properties

The current OneGrabRotateConstraints that are being used by this instance.

Member Functions

Implementation of ITransformer.Initialize; for details, please refer to the related documentation provided for that interface.
Computes the pose of the rotational pivot, in world space.
Returns
The world space pose of the rotational pivot.
Implementation of ITransformer.BeginTransform; for details, please refer to the related documentation provided for that interface.
Implementation of ITransformer.UpdateTransform; for details, please refer to the related documentation provided for that interface.
Implementation of ITransformer.EndTransform; for details, please refer to the related documentation provided for that interface.
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.
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.
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.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon