Problem with ODE/Irrlicht tutorial

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.
fabietto
Posts: 93
Joined: Wed Sep 24, 2008 4:38 pm
Location: Plymouth, UK
Contact:

Post by fabietto »

Brainsaw wrote:You have defined a body somewhere, attached a geom to it but didn't define a mass which must not be equal to zero.
Thanks, Brainsaw. I don't want to appear rude, but I can read as well... :)

If you have had a look to the code we're talking about, you must have noticed that a mass for the object has been set:

Code: Select all

dMass mass;   
dMassSetBox(&mass,2.0,(dReal)extend.X,(dReal)extend.Y,(dReal)extend.Z);
dBodySetMass(body,&mass);
but for some reasons ODE is complaining about it.

PS: as a side note, I'm willing to give a try to your ODE wrapper. Do you know if anybody has already tried to use it on Mac OS X?
Brainsaw
Posts: 1183
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Post by Brainsaw »

OK, you got me ;). Didn't read the code, just thought it's the same source of this error I sometimes get ;). In this case I don't know what the problem is.

I don't know of anyone who has tried my wrapper on a Mac, but tecan added a Linux target to the Code::Blocks project of the lib, so I guess it is running under Linux.

I used the Irrlicht-ODE tutorial as starting point for my wrapper, and I didn't have such problems. But (IIRC) the tutorial is using some old version of the ODE lib, so maybe some changes have appeared that cause this problem (I haven't checked that part of my code for more than a year, as it was always working OK).
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
Post Reply