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

TwoGrabPlaneTransformer Class

Extends MonoBehaviour, ITransformer
A Transformer that translates, rotates and scales the target on a plane.

Properties

TwoGrabPlaneConstraints Constraints[Get]

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 InjectOptionalPlaneTransform
( Transform planeTransform )
void InjectOptionalConstraints
( TwoGrabPlaneConstraints constraints )

Static Member Functions

static TwoGrabPlaneState TwoGrabPlane
( Vector3 p0,
Vector3 p1,
Vector3 planeNormal )
Did you find this page helpful?