Part 2

Implement inelastic collision with the ground and the vertical edges of the canvas for your mortar rounds. They should bounce, but lose energy with each collision. Shells pass through each other. Test for collision in the positions where the rounds are drawn only.

javascript programming
exa_09_physics2