Skip to main content

WORLD_HALF

Constant WORLD_HALF 

Source
pub const WORLD_HALF: f32 = 16384.0;
Expand description

Half the addressable world extent in Hammer units.

Source 2’s cell grid is centred on the world origin, so cell 0 starts at -WORLD_HALF and cell indices run upward from there. This constant is the shift applied in cell_to_world to translate cell-relative addresses back to centred world coordinates.