1681-engine / index / bodyCollides
Function: bodyCollides() ​
ts
function bodyCollides(
grid,
x,
y
): boolean;Defined in: src/net/movement.ts:92
True if the body box centered at (x, y) overlaps a solid tile.
Parameters ​
| Parameter | Type |
|---|---|
grid | CollisionGrid |
x | number |
y | number |
Returns ​
boolean