The velocity vector of a ball:
>
|
|
The surface normal:
>
|
|
The velocity vector after reflection across the surface normal:
>
|
|
>
|
|
Restitution coefficient:
Using represents an inelastic collision between the ball and the surface, whereas using represents an elastic collision.