20.03.2015, 11:54
I know what you mean. You are only considering the collision that is in 'front'. What if there happens to be another object nearby? Your method would just go through the nearby object and continue. We are in a 3D space, not 2D.