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

TwoGrabRotateTransformer Class

Extends MonoBehaviour, ITransformer
A Transformer that rotates the target about an axis, given two grab points.
Updates apply relative rotational changes, relative to the angle change between the two grab points each frame. The axis is defined by a pivot transform: a world position and up vector.

Member Enumerations

Enumeration Axis

Right
= 0
Up
= 1
Forward
= 2

Member Functions

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.
Parameters
grabbable
The owning IGrabbable for this instance.
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.
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.
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.
void InjectOptionalPivotTransform
( Transform pivotTransform )
void InjectOptionalRotationAxis
( Axis rotationAxis )
void InjectOptionalConstraints
( TwoGrabRotateConstraints constraints )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon