Beginning Math and Physics for Game Programmers

 <  Day Day Up  >  

Chapter 8, "Motion in One Dimension"

Displacement with Constant Velocity

displacement = velocity * time ( D = v * t )

for any constant velocity v .

Displacement Between Frames

new_position = old_position + velocity * time

where time is one frame (usually of a second).

Average Velocity

for any displacement D x and time interval t .

Acceleration

Equation 1

v f = v i + at

Equation 2

for constant acceleration only.

Equation 3

D x = ½( v i + v f ) t

Equation 4

D x = v i t + ½ at 2

Equation 5

 <  Day Day Up  >  

Категории