3D raycasting (Thanks griffpatch) | ScratchStats