Question: what is the difference between head on collision and glancing collision?
Answer: If two objects make a head on collision, they can bounce and move along the same direction they approached from (i.e. only a single dimension). However, if two objects make a glancing collision, they'll move off in two dimensions after the collision (like a glancing collision between two billiard balls).