createSegmentShape

expect fun createSegmentShape(def: ShapeDef, segment: Segment): Shape

Create a segment (line) shape and attach it to this body.

Return

The created shape

Parameters

def

The shape definition (density, friction, etc.)

segment

The segment geometry