Skip to content

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 ​

ParameterType
xnumber
ynumber
widthnumber
heightnumber
color?number

Returns ​

void

Released under the MIT License.