1681-engine / index / ColliderBoxDrawer
Type Alias: ColliderBoxDrawer ​
ts
type ColliderBoxDrawer = (x, y, width, height, color?) => void;Defined in: src/physics/drawColliders.ts:30
Draws one box in world coordinates. The same shape as DebugOverlay's BoxDrawer, written out here so the physics module stays free of anything that draws.
Parameters ​
| Parameter | Type |
|---|---|
x | number |
y | number |
width | number |
height | number |
color? | number |
Returns ​
void