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

OneGrabSphereTransformer Class

Extends MonoBehaviour, ITransformer
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

The minimum angle constraint, or how far the target can be transformer in a negative direction from grab starting point.
The maximum angle constraint, or how far the target can be transformer in a positive direction from grab starting point.
If true, the target will scale with the radius, which is derived from the distance from the target to the sphere center.
If ScaleWithRadius is true, this property determines the ratio of scaling that will occur on each axis.

Member Functions

Implementation of ITransformer.Initialize; for details, please refer to the related documentation provided for that interface.
Implementation of ITransformer.BeginTransform; for details, please refer to the related documentation provided for that interface.
Implementation of ITransformer.UpdateTransform; for details, please refer to the related documentation provided for that interface.
Implementation of ITransformer.EndTransform; for details, please refer to the related documentation provided for that interface.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon