Ray-tracing based collision simulator this was painful to make on an iPhone | ScratchStats