How do you determine which direction the gravitational force should pull on an object?

What did you draw?
Post Reply
awog
Posts: 1
Joined: Wed Feb 08, 2023 11:30 am

How do you determine which direction the gravitational force should pull on an object?

Post by awog »

It is possible to use a system of equations with a circle with the length of the force and a line going through it with the slope of the line connecting two points. I just KNOW that there has to be a better, less buggy way.
User avatar
testtubegames
Site Admin
Posts: 1151
Joined: Mon Nov 19, 2012 7:54 pm

Re: How do you determine which direction the gravitational force should pull on an object?

Post by testtubegames »

If you've just got one object pulling on another - gravity will pull them 'towards' one another. So the direction from one to the other.

If you're working with x-y coordinates, you can find the direction of the vector by using the difference of the objects' x and y coordinates.
Post Reply