Page 1 of 1

Physics and Irrlicht animation?

Posted: Sat Jul 12, 2008 11:01 pm
by JerryM
I am working on a project which involves some physics. I have decided that I would like to use the Havok engine. So far, I have written some code to convert an Irrlicht mesh to a Havok mesh. I was thinking about how to continue when I stumbled upon a problem...

How can you animate models with Irrlicht and provide physics?

Think about it... your typical game loop runs something like this:
1. Physics Step
2. Render Scene (scene->drawAll)

Do you see the problem? Irrlicht animates your scene nodes in scene->drawAll! How is it even possible to correctly implement physics when Irrlicht can change the mesh after the physics have been applied?

How can I fix this?

Posted: Sun Jul 13, 2008 10:55 am
by Luke
yep, that was one of the problems with the old system.

that's why I added the "Node->animateJoints();" function.

have a look here: http://www.irrlicht3d.org/wiki/index.ph ... tionSystem

Posted: Sun Jul 13, 2008 12:54 pm
by rogerborg
Any progress on fixing IAnimatedMesh::getMesh(s32 frame,...)?