Model Moving through animationcontroller.update

Topics: Developer Forum, User Forum
Nov 10, 2009 at 12:29 PM

Hi Everyone

I am having  a bit of a problem with the animation controller update function or my code.


I have a 3rd person game however when i load the monster and run the animationcontroller.update(gametime,matrix.identity) the mesh is not loading correctly ie certain portions move with camera others do not. (They should not move with the camera).

so i created the world matrix for the monster and added that to the controller update function ie animationcontroller.update(gametime,monstermatrix);

This solves the problem and the mesh loads correctly however when i change the position with a "monster.position=vector3.lerp(me.position,monster.position,0.2f)" then

the monster moves all over the place not towards my character


However if i do this with the matrix.identity in the animationcontroller.update it works fine (but mesh mangled)


So confused?


Thanks for your help in advance