It helps a lot, thank you. I am using those equations, so I know they are not the problem now. I think it might be a problem with the granularity of the monitor. I've been looking at other sims with the same parameters, and they appear to give the same result, just displayed smoother. I'm...
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...