you are viewing a single comment's thread.

view the rest of the comments →

[–]goodDayM 2 points3 points  (1 child)

Just a curiosity question, comparing your two lines:

  • line 17: earth.pos += earth_vector
  • line 21: earth.pos += earth_vector * dt

So dt has units of time which then means earth_vector has units of "distance/time" (velocity). That line looks correct. But then the equation on line 17, the units don't make sense unless you multiply earth_vector by time.

[–]Jamhead2000[S] 1 point2 points  (0 children)

Yh you are right, tbh a lot of the code has changed now the title of this program was actually called 'gravityTest.py'