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
Properties
Section titled “Properties”circles
Section titled “circles”circles:
object[]
Defined in: physics/ColliderShape2D.ts:58
c:
Vec2
r:
number
declined?
Section titled “declined?”
optionaldeclined?: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
Section titled “polylines”polylines:
Vec2[][]
Defined in: physics/ColliderShape2D.ts:57