private void Advanced(RotationBucket item) | Rotates a part in its local space toward the hands' midpoint, clamped to clampDegrees from identity. |
private void Awake() | Checks references, records starting tracking vectors and hooks every handle's interaction start and end events. |
private Quaternion ClampAroundIdentity(Quaternion rotation, float degrees) | Limits a rotation to a number of degrees away from identity. |
private Vector3 GetMidPoint(Pickup[] pickups, Vector3 baseObjectPos) | Returns the average interaction point of all hands on the pickups, or the object position if none. Flags a reset when the hand count changes. |
private void InteractionEnded(Interactable interactable, Interactor interactor) | Disables the component once no handle is held. |
private void InteractionStarted(Interactable interactable, Interactor interactor) | Enables the component so Update runs while a handle is held. |
private void OnDrawGizmosSelected() | Editor: draws each part's rotation axis in green. |
private void OnValidate() | Normalizes each part's rotation axis. |
private void Simple(RotationBucket item) | Rotates a part around its world-space axis by the change in direction to the hands' midpoint. |
private void Test() | Unused test method with no effect. |
private void Update() | Each frame, updates the tracking point and rotates every part with Simple or Advanced. |