Skip to main content

merged_offset_face_occludes

Function merged_offset_face_occludes 

Source
pub fn merged_offset_face_occludes(
    shape1: OffsetVoxelShape,
    shape2: OffsetVoxelShape,
    direction: Direction,
) -> bool
Expand description

Checks if two position-offset voxel shapes fully occlude the face between them.

This is the offset-aware form used by block states whose collision shape depends on BlockState.getOffset(level, pos).