Don’t try ray casting on 2D objects with no collision detection. Obviously.