#### Archived

This topic is now archived and is closed to further replies.

# Gravity Area

This topic is 5681 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

i know how to simulate gravity. but how to make it decay as the objects gets far away from the planet(gravity source).

##### Share on other sites
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

##### Share on other sites
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.

##### Share on other sites
No, you know how to simulate force.

1. 1
2. 2
Rutin
18
3. 3
4. 4
5. 5
frob
12

• 9
• 21
• 11
• 9
• 17
• ### Forum Statistics

• Total Topics
632606
• Total Posts
3007383

×