The shape of the area (currently only Rect and Polygon is supported).
add([
sprite("butterfly"),
pos(100, 200),
// a triangle shape!
area({ shape: new Polygon([vec2(0), vec2(100), vec2(-100, 100)]) }),
])
If this object should ignore collisions against certain other objects.
sincev3000.0
Bounciness factor between 0 and 1.
sincev4000.0
Friction factor between 0 and 1.
sincev4000.0
Whether collision detection should be done even without body.
sincev4000.0