[ODE] Gravity

Nate W coding at natew.com
Thu Jan 16 15:48:01 2003


On Thu, 16 Jan 2003, Jakob Kjaer wrote:

> Without browsing the internals of ODE much, I have a question:
> Would it be a - more or less - simple task to add gravity to objects, or
> is the 'per world gravity' the only possibility? I'm thinking at things
> like simulating simple solarsystemts and so forth... :)

dBodyAddForce should do what you want, just compute the force to work like
gravity.   G * ((m1 * m2) / r^2) or something like that.

-- 

Nate Waddoups
Redmond WA USA
http://www.natew.com