Allocate and initialize a segment shape.

cpSegmentShapeNew(body, a, b, radius)

Arguments

body

[cpBody *]

a

[cpVect *]

b

[cpVect *]

radius

[cpFloat]

Value

[cpShape *]

Details

C function prototype: CP_EXPORT cpShape* cpSegmentShapeNew(cpBody *body, cpVect a, cpVect b, cpFloat radius);