So I'm trying to make two objects attract towards each other using Newton equation of gravity, but I have no idea how to code this. If someone could make a little demo I can understand by reading the code.
Well many laws use equations, and math uses equations. Programming also uses equations. I have the gravity equation set, but my problem right now is working with Newton's laws of motion (an object in motion currently DOES NOT stay in motion), and direction never changes. But I'm working on it. Just gotta find the proper math.
I'm actually the top student in my math class (I can do calculus), but I'm not the best when it comes to programming (and yet I made a 3D engine. I'm still not awesome tho). How's about you let me fiddle around with your project?
I'd prefer to try to do it on my own. I feel like I'm at least acceptable (though I'm not quite to the higher points in math, like calculus) and I'm close enough that I could make it work myself. If I can't then I'll definitely give it to you, but I don't feel it's at that point yet.
That's totally okay! Take your time. Btw is the program going to have touch screen support? Like, you could tap on the screen to make a planet, or drag while still pressing to give it speed.