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

TwoGrabPlaneTransformer Class

Extends MonoBehaviour, ITransformer
Legacy ITransformer that translates, rotates and scales the target on a plane.
For most usages, this has been superseded by GrabFreeTransformer, which can be constrained in Z scale to achieve planar behavior; for more information, see ScaleConstraints and GrabFreeTransformer.InjectOptionalScaleConstraints(ScaleConstraints).

Properties

Gets or sets the TwoGrabPlaneConstraints for this transformer.
If constraints have already been assigned through the Editor or through InjectOptionalConstraints(TwoGrabPlaneConstraints), this assignment will override them.

Member Functions

Implementation of ITransformer.Initialize(IGrabbable); for details, please refer to the related documentation provided for that interface.
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 dependencies for a dynamically instantiated TwoGrabPlaneTransformer; effectively wraps InjectOptionalConstraints(TwoGrabPlaneConstraints).
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets the TwoGrabPlaneConstraints for a dynamically instantiated TwoGrabPlaneTransformer.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.

Static Member Functions

Parameters
p0
p1
planeNormal
Returns
Did you find this page helpful?
Thumbs up icon
Thumbs down icon