# How weapon is attached to a rigged animation

**URL:** <https://forum.babylonjs.com/t/how-weapon-is-attached-to-a-rigged-animation/17603>\
**Category:** Questions\
**Created:** [January 18, 2021, 9:18pm UTC](https://forum.babylonjs.com/t/how-weapon-is-attached-to-a-rigged-animation/17603 "2021-01-18T21:18:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gryff](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gryff/32/1855_2.png) [@gryff](https://forum.babylonjs.com/u/gryff)\
**Post date:** [January 18, 2021, 10:15pm UTC](https://forum.babylonjs.com/t/how-weapon-is-attached-to-a-rigged-animation/17603/2 "2021-01-18T22:15:05Z")

</div>

This the kind of thing you are looking for :

[Sword](http://www.3dworlds.ca/weapon/index.html)

Click on the simple sword to attach and remove, click on the figure for animation.

Below is a picture of the blender set up. The “sword” has its origin at 0.0.0 and I played with its rotation until it ended fitting into the hand nicely. Notice that the sword origin is not at the end of the sword but slightly in - so that the "handle will fit into the hand.

Feel free to steal my code for the interaction though it is kind of old.

Stay Safe, gryff 🙂

![blender_weapon01](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/9/9cc30de4226cfa90e452e750a1b9c7f05bb02a75.png)

---

_[View the full topic](https://forum.babylonjs.com/t/how-weapon-is-attached-to-a-rigged-animation/17603)._
