Physics and Irrlicht animation?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
JerryM
Posts: 5
Joined: Thu Jun 19, 2008 9:51 pm

Physics and Irrlicht animation?

Post 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?
Luke
Admin
Posts: 449
Joined: Fri Jul 14, 2006 7:55 am
Location: Australia
Contact:

Post 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
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Any progress on fixing IAnimatedMesh::getMesh(s32 frame,...)?
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply