1681-engine / index / CollisionGridOptions
Interface: CollisionGridOptions ​
Defined in: src/net/movement.ts:35
Properties ​
bodyHalfHeight? ​
ts
optional bodyHalfHeight?: number;Defined in: src/net/movement.ts:42
bodyHalfWidth? ​
ts
optional bodyHalfWidth?: number;Defined in: src/net/movement.ts:41
Half the moving body's collision box, px (default BODY_HALF_WIDTH × BODY_HALF_HEIGHT, a 10×6 foot box).
ground? ​
ts
optional ground?: readonly number[];Defined in: src/net/movement.ts:37
The tile id of every cell, row-major; needed only for shotOverTiles.
shotOverTiles? ​
ts
optional shotOverTiles?: Iterable<number, any, any>;Defined in: src/net/movement.ts:39
Tile ids nothing walks but a shot flies over (water, lava…): solid for bodies, open for shots.