Scala Raycasting