Skip to main content
GameDev.net gamedev.net
🔒 Locked

ODE Inertia Problem

Started by Deftoned Dec 29, 2008 at 6:06 AM 0 replies 750+ views
Original Post
Deftoned
Deftoned
Hey Guys, i have been messing around with a basic physics engine and i have run across a problem using the call. dMassSetSphereTotal(&mass, density, radius); When this line is executed it will set Mass and c inside of mass but it wont' do anything to inertia, so i then get an error saying Inertia must be positive and definite Density and Radius are both dReals and are equal to 1.0. It is called from here in a loop. //Create the object in the world object_.setBody(world_); //Create a Sphere, with sphere mass distribution (Density, Radius) object_.setMassSphereDistribution(density, 1.0f); //Apply the mass to cube object_.setBodyMass(); I am using the dll called ode_doubled.dll so i think i am using the correct one. Anyways thank you for any help you can give, thank you. Happy New Year ;)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.