Changed most physics calculations to use Unity's built-in 2D physics mechanics.