Function: PlaceShapes2D()
ts
function PlaceShapes2D(
local,
scaleX,
scaleY,
x,
y,
angle,
ppm
): Shape2D[];The shapes placed for a body: scaled by the entity's world scale, then rotated by angle and moved by (x, y) — the entity's frame inside the body's — and divided by pixels-per-metre.
Parameters
| Parameter | Type |
|---|---|
local | readonly Shape2D[] |
scaleX | number |
scaleY | number |
x | number |
y | number |
angle | number |
ppm | number |
Returns
Shape2D[]