mrdoob/three.js — Issue #1356: Multiple animations in an array
Author: lburge
Created: 2012-02-19 14:54:25+00:00
State: open

Hi,

I'm trying to add and remove models using a switch and break function. I have this all working but I'm having trouble with the morph targets for the models. I've seen a few examples on here which add models to an array, and then in the render run this
```javascript
var delta = clock.getDelta();
for ( var i = 0; i < morphs.length; i ++ ) {
morph = morphs[ i ];
morph.updateAnimation( 1000 * delta );
}
```

The error which is returning is 'Uncaught TypeError: Object [object Object] has no method 'updateAnimation'

Is there another way around animation the models? My whole code can be found here http://pastebin.com/NMpgC3kf :)