> For the complete documentation index, see [llms.txt](https://sunfish-studios.gitbook.io/main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sunfish-studios.gitbook.io/main/secondary-components/rod-ik.md).

# Rod IK

Implements [`IHandIK`](/main/animation-behaviours/hand-ik.md) 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="/files/3jegRMyt6xvvfKa7wfkr" 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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sunfish-studios.gitbook.io/main/secondary-components/rod-ik.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
