Function pick_block

Source
pub fn pick_block(
    look_direction: &LookDirection,
    eye_position: &Vec3,
    chunks: &ChunkStorage,
    pick_range: f64,
) -> BlockHitResult
Expand description

Get the block that a player would be looking at if their eyes were at the given direction and position.

Also see pick.