- #1
exclamaforte
- 3
- 0
Hello, I am attempting to make an orbital simulation for a final project in a computer science course. I have applied the inverse square law, and that seems to be working fine, but there is a problem with the vectors involved. I have the x component becoming negative when the particle's x value is greater than the sun's x value and vise versa for the y; but this configuration yields oblong orbits and sharp corners in the motion of the particle. The path of the particle ends up looking like a isosceles triangle, with the shorter side near the sun. If anyone knows the specific equations used in orbital simulators and can explain them, it would be much appreciated.