Bounce sample (Irrlicht + ODE) not bouncing at all

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
cmsanta

Bounce sample (Irrlicht + ODE) not bouncing at all

Post by cmsanta »

Hello:

I came across the Irrlicht lib because I found a sample project written in .NET called Bounce.cpp. It uses ODE which is the library that I am interested in, and also uses Irrlicht lib for the rendering.

I had some problems in the sample code, like .getExtend() had to be changed for .getExtent() and so on.
Also, the irrlicht.dll I was using was not the correct one.

After, fixing all that, my code seems to run BUT one minor problem though, the objects (boxes) are NOT bouncing at all in the program, and that's suppose to be the whole point of the program, boxes bouncing around!!!!

Any suggestions?

Thanks,
CS
Greven

Post by Greven »

You can make them bounce like this: Grap your monitor and shake it, then throw it onto the floor... There you have it, bouncing boxes...

Sorry... 8)
William Finlayson
Posts: 61
Joined: Mon Oct 25, 2004 12:11 am

Post by William Finlayson »

I haven't looked at it, but from my own experience with ODE, trimesh physics responses are done differently to primatives. If the boxes are colliding wth primatives then it should work fine and your problem is something else, but if they are meant to be bouncing off of a trimesh terrain or any other trimesh, then that may cause problems. There is a field you must set in trimeshes to tell it what its velocity was last frame (even if it was just 0), or objects tend to have some strange interactions with them.

Thats just a suggestion, like I said, I haven't looked at the program. Another problem is that you may not have an ODE library with collision support built-in, I think it's the library built with coldet that you need.
Post Reply