2d ray-bounce thing.
http://jessealdridge.com