Type Alias: Shape2D
ts
type Shape2D =
| {
kind: "circle";
radius: number;
x: number;
y: number;
}
| {
kind: "polygon";
points: number[];
}
| {
kind: "chain";
loop: boolean;
points: number[];
};Body-local geometry. points is a flat x, y list; a polygon is convex with at most PHYSICS2D_MAX_POLYGON_VERTICES points.