> 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/animation-behaviours/hand-ik.md).

# Hand Ik

A `StateMachineBehaviour` that toggles hand IK and switches hand targets at precise moments during an animation. Integrates with any component implementing `IHandIK`.

✅ **Requires**:

* At least one `IHandIK` component on the Animator’s children or parent (e.g., `FishingRod` or custom IK handler).

🔧 **Inspector Settings**

<figure><img src="/files/pJavxfaYvnKhnQkQpWsk" alt="" width="443"><figcaption></figcaption></figure>

**Target IK State**

* **Enable**: Activates hand IK.
* **Disable**: Deactivates hand IK.

**Hand Target Switching**

* **Right Hand Switch**:
  * *Don’t Switch* (default)
  * *Switch to Default*
  * *Switch to Handle*
* **Left Hand Switch**:
  * *Don’t Switch* (default)
  * *Switch to Default*
  * *Switch to Reel Pose*

**Activation Triggers**

* **Execute on State Enter**: Applies IK/targets immediately when animation starts.
* **Execute on State Exit**: Applies IK/targets when animation ends (skips self-transitions).
* **Execute on State Update**: Fires at a specific animation time.
  * **Activation Time** *(0 – 1)*: When during the animation to trigger (only visible if *Execute on State Update* is enabled).

📈 **Key Behavior**

This is used in conjuntion with [**Malbers IK system**](https://malbersanimations.gitbook.io/animal-controller/secondary-components/ik-manager) to have fine control ever when we want hand IK to be enabled or disable, it has controls for both left and right hand individually.

<figure><img src="/files/i10Gs7y5x1CM0EBdJU0S" alt="" width="309"><figcaption></figcaption></figure>

{% hint style="warning" %}
Important: You will need to add curves named *IKLeftHand* and/or *IKRightHand* in a animation clip in order to make it compatible with the *IK System*
{% endhint %}

<div align="center"><figure><img src="/files/aKjSXaTrSVFdj0vi5ehs" alt="" width="450"><figcaption></figcaption></figure></div>

💡 **Notes**

* Designed for fishing-specific poses: e.g., enable IK when reeling, switch right hand to rod handle, left to reel grip.
* Activation Time uses normalized time, so it’s frame-rate and speed-independent.
* [**RodIK** ](/main/secondary-components/rod-ik.md)implements *IHandIK.*


---

# 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/animation-behaviours/hand-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.
