Simple 2D Physics Engine in Python 3 Turtle Graphics - Part 2

preview_player
Показать описание
A continuation of the simple physics engine build. In this installment we learn how to model consistent movement speed for our animation actors by keeping track of vector velocities in the x and y directions. We also learn how to calculate the interval of time between each frame generation, which when combined with the velocities allows for consistent animation movement across devices with varied specifications and independent of their respective system loads.
Рекомендации по теме
Комментарии
Автор

Wouldn’t you want to set “last now” as “now” as soon as possible in the while loop? You are misrepresenting the calculation time of all the other processes within the while loop when you establish it at the end of the while loop

styxrakash