[ODE] attraction forces?

david@csworkbench.com david at csworkbench.com
Thu Mar 20 20:23:02 2003


Sure, just set world gravity to 0 at the start, then each timestep call
dBodyAddForce on each body, with the amount of force you want to add
(probably inversely proportional to the square of the distance to the
object), in the direction of the vector from the body to the object.

David

> Would it be too much trouble to add gravity-like attraction forces to
> specific bodies? So if I want to simulate a solar system, I could just
> assign gravity to sun object
>
>
>
>
>
> _________________________________________________________________ Add
> photos to your e-mail with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
> _______________________________________________
> ODE mailing list
> ODE@q12.org
> http://q12.org/mailman/listinfo/ode