createCapsuleShape

expect fun createCapsuleShape(def: ShapeDef, capsule: Capsule): Shape

Create a capsule shape and attach it to this body.

Return

The created shape

Parameters

def

The shape definition (density, friction, etc.)

capsule

The capsule geometry