# Attaching a 3d model mesh to a bone

**URL:** <https://discourse.threejs.org/t/attaching-a-3d-model-mesh-to-a-bone/6182>\
**Category:** Questions\
**Tags:** transform, skeletal-animation\
**Created:** [February 18, 2019, 12:43am UTC](https://discourse.threejs.org/t/attaching-a-3d-model-mesh-to-a-bone/6182 "2019-02-18T00:43:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baronwatts](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/baronwatts/32/3878_2.png) [@baronwatts](https://discourse.threejs.org/u/baronwatts)\
**Post date:** [February 18, 2019, 12:43am UTC](https://discourse.threejs.org/t/attaching-a-3d-model-mesh-to-a-bone/6182/1 "2019-02-18T00:43:21Z")

</div>

I’m having a little trouble attaching a weapon to a bone. I can add geometric shapes like cubes and spheres to the bone but when I try to attach a model to a bone it doesn’t work.

The weapon model shows up if I add it to the scene but when I try to add it to the bone it doesn’t show up.

![bones](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/threejs/original/2X/2/2b3c3049ef0097c9093fc03b0893eb4b40ce9e66.jpeg)

here’s a live link: [https://jsfiddle.net/Screwhead28/e49msd65/](https://jsfiddle.net/Screwhead28/e49msd65/)

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [February 18, 2019, 10:07am UTC](https://discourse.threejs.org/t/attaching-a-3d-model-mesh-to-a-bone/6182/2 "2019-02-18T10:07:47Z")

</div>

> [@baronwatts](#):
>
> I try to add it to the bone it doesn’t show up.

That’s because the bone has a transformation that is applied to all child objects and thus to the weapon. You can inspect this transformation by debugging the bone’s world matrix.

Since the bone has a very small scaling, the weapon shows up if you increase its scaling like in the following updated fiddle:

> **[Edit fiddle - JSFiddle - Code Playground](https://jsfiddle.net/5jhfLob2/)**
>
> Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.

---

<div class="post-metadata">

**Author:** ![baronwatts](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/baronwatts/32/3878_2.png) [@baronwatts](https://discourse.threejs.org/u/baronwatts)\
**Post date:** [February 18, 2019, 11:02am UTC](https://discourse.threejs.org/t/attaching-a-3d-model-mesh-to-a-bone/6182/3 "2019-02-18T11:02:47Z")

</div>

WOW Ok! been banging my head against the wall trying to figure this out. Thanks!
