Function: Collider2DLocalShapes()
ts
function Collider2DLocalShapes(collider): Shape2D[];A collider's geometry as solver-ready primitives — circles, convex polygons of at most PHYSICS2D_MAX_POLYGON_VERTICES points, chains — in the entity's local pixels (offset applied, scale not). Physics2DSystem scales and places them on the body; the editor draws them.
Parameters
| Parameter | Type |
|---|---|
collider | Collider2DComponent |
Returns
Shape2D[]