First implementation of raycaster etc.