Implement raycasting with sphere shape