Gravity Area

Started by
2 comments, last by DirectXXX 21 years, 1 month ago
i know how to simulate gravity. but how to make it decay as the objects gets far away from the planet(gravity source).
3D Side-Scroller game demo Project-X2 "playable"Lashkar: A 3D Game & Simulation Project demo @ lashkar.berlios.de
Advertisement
Do you know about vectors? The formula for gravity is

F = k * m1 * m2 / r²

And it is oriented in the direction of the vector between the object and the planet.

Cédric
No offense, but what exactly about gravity do you know how to simulate if you don''t know how to make the force decrease with distance? Aside from knowing how to use acceleration vectors, all there is to it is the formula F=Gmm/r^2. If you explain exactly what you do know, I''d be glad to explain what you don''t.
You know what I never noticed before?
No, you know how to simulate force.

This topic is closed to new replies.

Advertisement