Advertisement
Guest User

Untitled

a guest
Jul 15th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. position = initial_position + speed * elapsed_time
  2.  
  3. position = position + speed * delta
  4.  
  5. moved_distance = speed * delta
  6. position = position + moved_distance
  7.  
  8. delta_in_seconds = delta_in_milliseconds / 1000.0
  9. moved_distance = speed * delta_in_seconds
  10. position = position + moved_distance
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement