Skip to content

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 ​

ParameterType
colliderCollider2DComponent

Returns ​

Shape2D[]

© 2026 PlayAdGentic