Class PerAxisHandles
Rotation handles for BoundsControl that are used for rotating the
Gameobject BoundsControl is attached to with near or far interaction
Inheritance
PerAxisHandles
Assembly: cs.temp.dll.dll
public abstract class PerAxisHandles : HandlesBase, IProximityEffectObjectProvider
Fields
Declaration
protected PerAxisHandlesConfiguration config
Field Value
Properties
Configuration defining the handle behavior.
Declaration
protected override HandlesBaseConfiguration BaseConfig { get; }
Property Value
Overrides
This description is used as the name (followed by an index) for the handle gameobject.
Can be used to search the rigroot tree to find a specific handle by name
Declaration
protected virtual string HandlePositionDescription { get; }
Property Value
Cached handle positions - we keep track of handle positions in this array
in case we have to reload the handles due to configuration changes.
Declaration
protected Vector3[] HandlePositions { get; }
Property Value
Type |
Description |
Vector3[] |
|
Declaration
public override bool IsActive { get; }
Property Value
Overrides
Methods
Declaration
protected void Finalize()
Provide the rotation alignment for a handle. This method will be called when creating the handles.
Declaration
protected abstract Quaternion GetRotationRealignment(int handleIndex)
Parameters
Type |
Name |
Description |
Int32 |
handleIndex |
Index of the handle the rotation alignment is provided for.
|
Returns
Type |
Description |
Quaternion |
|
Declaration
protected override Transform GetVisual(Transform handle)
Parameters
Type |
Name |
Description |
Transform |
handle |
|
Returns
Type |
Description |
Transform |
|
Overrides
Declaration
protected override void RecreateVisuals()
Overrides
Declaration
protected override void UpdateColliderBounds(Transform handle, Vector3 visualSize)
Parameters
Type |
Name |
Description |
Transform |
handle |
|
Vector3 |
visualSize |
|
Overrides
Declaration
protected void UpdateHandles()
Implements