createPolygonShape

expect fun createPolygonShape(def: ShapeDef, polygon: Polygon): Shape

Create a polygon shape and attach it to this body.

Return

The created shape

Parameters

def

The shape definition (density, friction, etc.)

polygon

The polygon geometry