# Rod IK

Implements [`IHandIK`](https://sunfish-studios.gitbook.io/fishing-for-animal-controller/animation-behaviours/hand-ik) to control hand IK targets for the fishing rod. Toggles IK on/off and switches hand positions between default, handle, and reel poses.

✅ **Requires**:

* Malbers’ `TransformHook` components for right and left hands.
* A `BoolReference` (e.g., Animator bool parameter) to drive IK activation.

***

🔧 **Inspector Settings**

<figure><img src="https://2707882048-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7extQzUzohv5ZZCgCVG8%2Fuploads%2FnCjOUKzk4SRAT22uj98j%2Fimage.png?alt=media&#x26;token=c5cb97eb-acbd-459a-bb3c-ab83d48dd85d" alt="" width="318"><figcaption></figcaption></figure>

**Use IK**

* `BoolReference` that enables/disables the use of IK

**Right Hand**

* **Right Hand Transform Hook**: Malbers `TransformHook` that sets the right hand’s IK target.
* **Right Hand Default Pos**: Default position for the right hand when not gripping the handle.
* **Right Hand Handler Pos**: Position when gripping the rod handle.

**Left Hand**

* **Left Hand Transform Hook**: Malbers `TransformHook` for the left hand’s IK target.
* **Left Hand Default Pos**: Neutral position.
* **Left Hand Reel Pos**: Position when operating the reel.

***

📈 **Key Behavior**

**IK Control**

* `OnToggleHandIK(bool)`: Sets `_useIK.Value` to enable/disable IK globally.
* `EnableIK()` / `DisableIK()`: Public helpers that do the same.

**Hand Switching**

* `SwitchRightHand()`: Swaps right hand target between *Default* and *Handle*.
* `SwitchLeftHand()`: Swaps left hand target between *Default* and *Reel Pose*.
* After switching, calls `UpdateHook()` to immediately apply the new target.

**Integration**

* Designed to work with `HandIK_Behaviour`&#x20;
* Uses Malbers’ `TransformHook` system for IK target assignment.
