# Problems with creating multiple animated models

**URL:** <https://discourse.threejs.org/t/problems-with-creating-multiple-animated-models/5433>\
**Category:** Questions\
**Tags:** animation\
**Created:** [December 20, 2018, 2:42am UTC](https://discourse.threejs.org/t/problems-with-creating-multiple-animated-models/5433 "2018-12-20T02:42:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![1118](https://avatars.discourse-cdn.com/v4/letter/1/a88e4f/32.png) [@1118](https://discourse.threejs.org/u/1118)\
**Post date:** [December 20, 2018, 2:42am UTC](https://discourse.threejs.org/t/problems-with-creating-multiple-animated-models/5433/1 "2018-12-20T02:42:17Z")

</div>

ok thanks  
ok thanks  
ok thanks  
ok thanks  
ok thanks

---

<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:** [December 20, 2018, 9:24am UTC](https://discourse.threejs.org/t/problems-with-creating-multiple-animated-models/5433/2 "2018-12-20T09:24:03Z")

</div>

> [@1118](#):
>
> mixer = new THREE.AnimationMixer( object ) ;

That happens because you overwrite the `mixer` variable at this place.

You can solve this problem by creating an array that holds all instances of `AnimationMixer`. In your animation loop, you iterate over this array and update mixer by mixer.

---

<div class="post-metadata">

**Author:** ![1118](https://avatars.discourse-cdn.com/v4/letter/1/a88e4f/32.png) [@1118](https://discourse.threejs.org/u/1118)\
**Post date:** [December 21, 2018, 3:52am UTC](https://discourse.threejs.org/t/problems-with-creating-multiple-animated-models/5433/3 "2018-12-21T03:52:17Z")

</div>

Thank you, but I did not understand.

Codepen: [https://codepen.io/anon/pen/LMWpxG?editors=0010](https://codepen.io/anon/pen/LMWpxG?editors=0010)
