[ODE] Gravity
Martin C. Martin
martin at metahuman.org
Thu Jan 16 16:49:02 2003
Keep in mind though, that energy won't be conserved, so the planets will
slowly spiral in toward the stars.
Nate W wrote:
>
> 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.
>