Get the centroid of this shape.

cpShapeGetCenterOfGravity(shape)

Arguments

shape

[cpShape *]

Value

[cpVect *]

Details

C function prototype: CP_EXPORT cpVect cpShapeGetCenterOfGravity(cpShape *shape);