BuD (almost) fixed raytracing implementation. Still has a weird offset. Now adding gravity & refactoring