OneGrabSphereTransformer Class
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.
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.
bool ScaleWithRadius[Get]
If true, the target will scale with the radius, which is derived from the distance from the target to the sphere center.
Vector3 RadiusToScaleRatio[Get]
If
ScaleWithRadius is true, this property determines the ratio of scaling that will occur on each axis.
Implementation of
ITransformer.Initialize; 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.