O'Reilly logo

Beginning Math and Physics for Game Programmers by Wendy Stahler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Equations of Motion

Now that we've defined all the variables you'll be working with, you can move on to studying the equations that model one-dimensional motion. It is very important to note that these equations hold only when the acceleration is constant. Remember that the velocity section started by discussing constant velocity. It said that if the velocity does not change, the average velocity is the same as the instantaneous velocity at any time. The same applies to acceleration. Fortunately, most objects in nature move with a constant acceleration, like an object in free fall. If you have a scenario in which the acceleration changes, just break it into smaller time intervals of constant acceleration. This works perfectly in programming, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required