Beginning Math and Physics for Game Programmers
| < Day Day Up > |
Chapter 13, "Momentum and Collisions"
Axis-Aligned Vector Reflection
If the stationary boundary is vertical, v f = [ “ v ix v iy ] and if the stationary boundary is horizontal, v f = [ v ix “ v iy ] for incoming velocity v i = [ v ix v iy ]. Non-Axis-Aligned Vector Reflection
v f = 2 * P + v i where v i = the incoming velocity and P = the projection of “ v i onto the normal of the boundary line. Momentum
p = mv where m = mass and v = velocity. Impulse
Impulse = Ft where F = net force and t = a very small amount of time. Impulse-Momentum Theorem
Impulse = Ft = ( D p ) where F = net force, t = a very small amount of time, and p = momentum. Conservation of Momentum Theorem
m 1 v 1i + m 2 v 2i = m 1 v 1f + m 2 v 2f where the 1 subscript represents object 1 and the 2 subscript represents object 2. Linear Collision
( v 1f “ v 2f ) = “ e ( v 1i “ v 2i ) where e = coefficient of restitution (0 < e < 1). |
| < Day Day Up > |