Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

grid_cell

The cell a point stands in (zero_grid_cell) and the bucket of a spatial hash grid that cell hashes to (zero_grid_bucket), read against the grid settings bound as gcfg. What a pass that only keys points by cell includes; a pass that walks the grid includes grid, which includes this.

gcfg is an array<f32> the includer binds: [0] one over the cell side, [1] the bucket mask (2^bits - 1), [2] the cell side. proc.device.gridInto returns it as the grid's cfg.

#include "@builtin::systems.procgen.grid_cell"