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

TwoGrabPlaneTransformer Class

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

Properties

Constraints : TwoGrabPlaneConstraints
[Get][Set]
Signature
TwoGrabPlaneConstraints Oculus.Interaction.TwoGrabPlaneTransformer.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.TwoGrabPlaneTransformer.BeginTransform()
Returns
void
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.TwoGrabPlaneTransformer.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.TwoGrabPlaneTransformer.Initialize(IGrabbable grabbable)
Parameters
grabbable: IGrabbable  The owning IGrabbable for this instance.
Returns
void
InjectOptionalConstraints ( constraints )
Signature
void Oculus.Interaction.TwoGrabPlaneTransformer.InjectOptionalConstraints(TwoGrabPlaneConstraints constraints)
Parameters
constraints: TwoGrabPlaneConstraints
Returns
void
InjectOptionalPlaneTransform ( planeTransform )
Signature
void Oculus.Interaction.TwoGrabPlaneTransformer.InjectOptionalPlaneTransform(Transform planeTransform)
Parameters
planeTransform: Transform
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.TwoGrabPlaneTransformer.UpdateTransform()
Returns
void

Static Methods

TwoGrabPlane ( p0 , p1 , planeNormal )
Signature
static TwoGrabPlaneState Oculus.Interaction.TwoGrabPlaneTransformer.TwoGrabPlane(Vector3 p0, Vector3 p1, Vector3 planeNormal)
Parameters
p0: Vector3
p1: Vector3
planeNormal: Vector3
Returns
TwoGrabPlaneState

Inner Class

TwoGrabPlaneConstraints Class

Fields

MaxScale : FloatConstraint
Signature
FloatConstraint Oculus.Interaction.TwoGrabPlaneTransformer.TwoGrabPlaneConstraints.MaxScale
MaxY : FloatConstraint
Signature
FloatConstraint Oculus.Interaction.TwoGrabPlaneTransformer.TwoGrabPlaneConstraints.MaxY
MinScale : FloatConstraint
Signature
FloatConstraint Oculus.Interaction.TwoGrabPlaneTransformer.TwoGrabPlaneConstraints.MinScale
MinY : FloatConstraint
Signature
FloatConstraint Oculus.Interaction.TwoGrabPlaneTransformer.TwoGrabPlaneConstraints.MinY