Skip to content

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 ​

ParameterType
localreadonly Shape2D[]
scaleXnumber
scaleYnumber
xnumber
ynumber
anglenumber
ppmnumber

Returns ​

Shape2D[]

© 2026 PlayAdGentic