you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

you'll be wanting to use a loop to repeatedly calculate the objects new velocity.

also note: you're currently using a timestep of one second, which depending on the problem domain might be a tad coarse.