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

TwoGrabFreeTransformer Class

Extends MonoBehaviour
A Transformer that transforms the target in a free form way for an intuitive two hand translation, rotation and scale.

Properties

Constraints : TwoGrabFreeConstraints
[Get][Set]
Signature
TwoGrabFreeConstraints Oculus.Interaction.TwoGrabFreeTransformer.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.TwoGrabFreeTransformer.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.TwoGrabFreeTransformer.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.TwoGrabFreeTransformer.Initialize(IGrabbable grabbable)
Parameters
grabbable: IGrabbable  The owning IGrabbable for this instance.
Returns
void
InjectOptionalConstraints ( constraints )
Signature
void Oculus.Interaction.TwoGrabFreeTransformer.InjectOptionalConstraints(TwoGrabFreeConstraints constraints)
Parameters
constraints: TwoGrabFreeConstraints
Returns
void
MarkAsBaseScale ()
Signature
void Oculus.Interaction.TwoGrabFreeTransformer.MarkAsBaseScale()
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.TwoGrabFreeTransformer.UpdateTransform()
Returns
void

Static Methods

TwoGrabFree ( initialRotation , prevA , prevB , newA , newB )
Signature
static TwoGrabFreeState Oculus.Interaction.TwoGrabFreeTransformer.TwoGrabFree(Quaternion initialRotation, Pose prevA, Pose prevB, Pose newA, Pose newB)
Parameters
initialRotation: Quaternion
prevA: Pose
prevB: Pose
newA: Pose
newB: Pose
Returns
TwoGrabFreeState
TwoGrabFreeInit ( a , b )
Signature
static TwoGrabFreeState Oculus.Interaction.TwoGrabFreeTransformer.TwoGrabFreeInit(Vector3 a, Vector3 b)
Parameters
a: Vector3
b: Vector3
Returns
TwoGrabFreeState

Inner Class

TwoGrabFreeConstraints Class

Fields

ConstraintsAreRelative : bool
Signature
bool Oculus.Interaction.TwoGrabFreeTransformer.TwoGrabFreeConstraints.ConstraintsAreRelative
ConstrainXScale : bool
Signature
bool Oculus.Interaction.TwoGrabFreeTransformer.TwoGrabFreeConstraints.ConstrainXScale
ConstrainYScale : bool
Signature
bool Oculus.Interaction.TwoGrabFreeTransformer.TwoGrabFreeConstraints.ConstrainYScale
ConstrainZScale : bool
Signature
bool Oculus.Interaction.TwoGrabFreeTransformer.TwoGrabFreeConstraints.ConstrainZScale
MaxScale : FloatConstraint
Signature
FloatConstraint Oculus.Interaction.TwoGrabFreeTransformer.TwoGrabFreeConstraints.MaxScale
MinScale : FloatConstraint
Signature
FloatConstraint Oculus.Interaction.TwoGrabFreeTransformer.TwoGrabFreeConstraints.MinScale

Inner Struct

TwoGrabFreeState Struct

Fields

Center : Pose
Signature
Pose Oculus.Interaction.TwoGrabFreeTransformer.TwoGrabFreeState.Center
Distance : float
Signature
float Oculus.Interaction.TwoGrabFreeTransformer.TwoGrabFreeState.Distance