# How can I determine the velocity after impact of a 2D ball collision?

Consider two balls moving towards each other. Each has a given mass and velocity. Assuming the balls collide, how can you determine what direction the balls will take afterwards? (taking into consideration the mass & velocity)

I realise it's quite a big question, perhaps someone could direct me to an appropriate tutorial.