Skip to main content

translate_shape

Function translate_shape 

Source
pub fn translate_shape(shape: &BlockLocalAabb, block_pos: BlockPos) -> WorldAabb
Expand description

Translates a VoxelShape (block-local AABB) to world coordinates.

§Arguments

  • shape - Block-local AABB (0.0-1.0 space)
  • block_pos - World position of the block

§Returns

World-space AABB at the block position.