Skip to content

Collider2DOutline

Defined in: physics/ColliderShape2D.ts:56

World-space (pixel) outline: straight runs as polylines + true circles left as {center, radius} so a backend can stroke them as arcs (SVG / circleOutline).

circles: object[]

Defined in: physics/ColliderShape2D.ts:58

c: Vec2

r: number


optional declined?: Vec2[][]

Defined in: physics/ColliderShape2D.ts:65

The authored outline where the solver does not have it — a concave polygon’s filled-in notch, or vertices past the eight Box2D takes. Absent when what was drawn is what collides; every backend strokes it apart, or the viewport says a shape exists where nothing can be hit.


polylines: Vec2[][]

Defined in: physics/ColliderShape2D.ts:57