> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinemation.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# ➕Integrating Animations

> This page explains how to use animations

## Weapon Bone

To fully integrate tactical animations with your animator controller, it's essential to add a Tactical Weapon Bone component to your character:

<Frame caption={"Add this component to your character model (same as Animator)."}>
  <img src="https://mintcdn.com/kinemation/-AzWoLR_QWINVM-e/images/tactical-shooter-pack/unity/9d82048d67ca3637bd8b.png?fit=max&auto=format&n=-AzWoLR_QWINVM-e&q=85&s=02c7e8472ddea1e6cd76dda005e8ba01" alt="" width={407} data-path="images/tactical-shooter-pack/unity/9d82048d67ca3637bd8b.png" />
</Frame>

This component will correctly position the weapon relative to the right hand at runtime. If you use a custom model with retargeted animations, assign your custom IK bones here (for more see [Integrating Animations](/tactical-shooter-pack/unity/tutorials/integrating-animations)).

Parent your guns to the ik\_hand\_gun (or a weapon bone):

<Frame caption={"Attach weapons to this bone."}>
  <img src="https://mintcdn.com/kinemation/-AzWoLR_QWINVM-e/images/tactical-shooter-pack/unity/dcdbafc7dc8d94064c69.png?fit=max&auto=format&n=-AzWoLR_QWINVM-e&q=85&s=b81c7568c784f00e901c96c690680848" alt="" width={218} data-path="images/tactical-shooter-pack/unity/dcdbafc7dc8d94064c69.png" />
</Frame>

## Avatar Mask

Now we need to create an Avatar Mask that will affect our upper body and IK bones. Right-click and choose **Create ▸Animation ▸ Avatar Mask.** Then, choose your avatar and select the upper body bones:

<Frame caption={"Select spine, neck and arm bones."}>
  <img src="https://mintcdn.com/kinemation/-AzWoLR_QWINVM-e/images/tactical-shooter-pack/unity/b5c53992d2ee4d92b6d9.png?fit=max&auto=format&n=-AzWoLR_QWINVM-e&q=85&s=e438853cc857dc72c72227b041337f72" alt="" width={406} data-path="images/tactical-shooter-pack/unity/b5c53992d2ee4d92b6d9.png" />
</Frame>

Next, check the weapon bone and IK bones for hands:

<Frame caption={"Select these bones."}>
  <img src="https://mintcdn.com/kinemation/-AzWoLR_QWINVM-e/images/tactical-shooter-pack/unity/6000096829b5a68b1d1f.png?fit=max&auto=format&n=-AzWoLR_QWINVM-e&q=85&s=2b2a0dafb37058ce02ac97eae88427e0" alt="" width={407} data-path="images/tactical-shooter-pack/unity/6000096829b5a68b1d1f.png" />
</Frame>

<Info>
  **Tip**: Weapon bone and hand IKs are important for correctly positioning the weapon.
</Info>

## Animator Controller

Create a new or use an existing layer for playing actions (e.g., reloads, mag checks, inspects, etc.), and assign the new upper body mask:

<Frame caption={"Assign the new mask here."}>
  <img src="https://mintcdn.com/kinemation/-AzWoLR_QWINVM-e/images/tactical-shooter-pack/unity/bf6eb6c19f0b053a4085.png?fit=max&auto=format&n=-AzWoLR_QWINVM-e&q=85&s=e3b3edb9a971858ce95ea4fcae14ea5c" alt="" width={414} data-path="images/tactical-shooter-pack/unity/bf6eb6c19f0b053a4085.png" />
</Frame>

Finally, add animation clips to this layer:

<Frame caption={"Add clips, blend trees and transitions to fit the needs of your gameplay."}>
  <img src="https://mintcdn.com/kinemation/-AzWoLR_QWINVM-e/images/tactical-shooter-pack/unity/7b87e906f86ccb2a6bea.png?fit=max&auto=format&n=-AzWoLR_QWINVM-e&q=85&s=6672afdc84e3e27fa58ef25bf31adce9" alt="" width={563} data-path="images/tactical-shooter-pack/unity/7b87e906f86ccb2a6bea.png" />
</Frame>

To play animations from code, use Unity-provided API:

## Spine Stabilization

By default, the lower-body locomotion will always affect the upper body. This makes the first-person view unstable when moving around.

<iframe src="https://iframely.net/n6hxlZeR" title="Embedded content" allow="encrypted-media *;" allowFullScreen className="w-full aspect-video rounded-xl" />

To fix this issue, go to the [Tactical Procedural Animation](/tactical-shooter-pack/unity/animations/procedural#tac-procedural-animation) component and set the `Spine Stabilization` to 1:

<img src="https://mintcdn.com/kinemation/-AzWoLR_QWINVM-e/images/tactical-shooter-pack/unity/523ac3206c4fe01e7d2e.png?fit=max&auto=format&n=-AzWoLR_QWINVM-e&q=85&s=bde6f9df876232c0b227190538c78c17" alt="" width={521} data-path="images/tactical-shooter-pack/unity/523ac3206c4fe01e7d2e.png" />

<Info>
  **Tip**: This field is public, meaning you can update it dynamically in code.
</Info>
