1681-engine / index / createCollisionGrid
Function: createCollisionGrid() ​
ts
function createCollisionGrid(
width,
height,
tileSize,
solid,
options?
): CollisionGrid;Defined in: src/net/movement.ts:58
A grid from a string of '0'/'1' per cell (row-major, '1' solid).
Parameters ​
| Parameter | Type |
|---|---|
width | number |
height | number |
tileSize | number |
solid | string |
options | CollisionGridOptions |