pub fn ray_cast(
world: &dyn WorldHandle,
origin: (f64, f64, f64),
direction: (f64, f64, f64),
max_distance: f64,
) -> Option<RayHit>Expand description
Casts a ray through the world and returns the first solid block hit.
Uses a simple stepping algorithm along the ray direction.
Returns None if no solid block is found within max_distance.