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

ITransformer Interface

Specifically relating to grab interactions, this characterizes a type which can apply 3D transforms (move, rotate, scale, etc.) in response to grab input expressed through an IGrabbable.
In a very direct sense, IGrabbable instances are considered to "own" their associated ITransformer instances, and only the owning IGrabbables should ever invoke any methods on their ITransformers.
During a grab interaction, ITransformers typically "take over" the IGrabbable.Transform in order to move/rotate/scale it according to the evolving state of the IGrabbable.GrabPoints. In this sense, ITransforms are essentially procedural animations.

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.ITransformer.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.ITransformer.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.ITransformer.Initialize(IGrabbable grabbable)
Parameters
grabbable: IGrabbable  The owning IGrabbable for this instance.
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.ITransformer.UpdateTransform()
Returns
void