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

OneGrabSphereTransformer Class

Extends MonoBehaviour
An ITransformer that rotates the target on a spherical surface.
The center of the sphere is a provided transform, and the radius is not fixed, but rather is determined by the distance from the object to the sphere center. Movement can be constrained by min/max angle properties.

Properties

MaxAngle : float
[Get][Set]
The maximum angle constraint, or how far the target can be transformer in a positive direction from grab starting point.
Signature
float Oculus.Interaction.OneGrabSphereTransformer.MaxAngle
MinAngle : float
[Get][Set]
The minimum angle constraint, or how far the target can be transformer in a negative direction from grab starting point.
Signature
float Oculus.Interaction.OneGrabSphereTransformer.MinAngle
RadiusToScaleRatio : Vector3
[Get][Set]
If ScaleWithRadius is true, this property determines the ratio of scaling that will occur on each axis.
Signature
Vector3 Oculus.Interaction.OneGrabSphereTransformer.RadiusToScaleRatio
ScaleWithRadius : bool
[Get][Set]
If true, the target will scale with the radius, which is derived from the distance from the target to the sphere center.
Signature
bool Oculus.Interaction.OneGrabSphereTransformer.ScaleWithRadius

Methods

BeginTransform ()
Implementation of ITransformer.BeginTransform; for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.OneGrabSphereTransformer.BeginTransform()
Returns
void
EndTransform ()
Implementation of ITransformer.EndTransform; for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.OneGrabSphereTransformer.EndTransform()
Returns
void
Initialize ( grabbable )
Implementation of ITransformer.Initialize; for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.OneGrabSphereTransformer.Initialize(IGrabbable grabbable)
Parameters
grabbable: IGrabbable
Returns
void
UpdateTransform ()
Implementation of ITransformer.UpdateTransform; for details, please refer to the related documentation provided for that interface.
Signature
void Oculus.Interaction.OneGrabSphereTransformer.UpdateTransform()
Returns
void