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 ()
Signature
void Oculus.Interaction.TwoGrabPlaneTransformer.BeginTransform()
Returns
void
EndTransform ()
Signature
void Oculus.Interaction.TwoGrabPlaneTransformer.EndTransform()
Returns
void
Initialize ( grabbable )
Signature
void Oculus.Interaction.TwoGrabPlaneTransformer.Initialize(IGrabbable grabbable)
Parameters
grabbable: IGrabbable
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 ()
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
Signature
FloatConstraint Oculus.Interaction.TwoGrabPlaneTransformer.TwoGrabPlaneConstraints.MaxY
MinScale : FloatConstraint
Signature
FloatConstraint Oculus.Interaction.TwoGrabPlaneTransformer.TwoGrabPlaneConstraints.MinScale
Signature
FloatConstraint Oculus.Interaction.TwoGrabPlaneTransformer.TwoGrabPlaneConstraints.MinY

Inner Struct

TwoGrabPlaneState Struct

Fields

Center : Pose
Signature
Pose Oculus.Interaction.TwoGrabPlaneTransformer.TwoGrabPlaneState.Center
PlanarDistance : float
Signature
float Oculus.Interaction.TwoGrabPlaneTransformer.TwoGrabPlaneState.PlanarDistance