Chipmunk2D Pro API Reference  7.0.3
 All Classes Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Functions
Chipmunk Unsafe Shape Operations

These functions are used for mutating collision shapes. More...

Functions

CP_EXPORT void cpCircleShapeSetRadius (cpShape *shape, cpFloat radius)
 Set the radius of a circle shape.
 
CP_EXPORT void cpCircleShapeSetOffset (cpShape *shape, cpVect offset)
 Set the offset of a circle shape.
 
CP_EXPORT void cpSegmentShapeSetEndpoints (cpShape *shape, cpVect a, cpVect b)
 Set the endpoints of a segment shape.
 
CP_EXPORT void cpSegmentShapeSetRadius (cpShape *shape, cpFloat radius)
 Set the radius of a segment shape.
 
CP_EXPORT void cpPolyShapeSetVerts (cpShape *shape, int count, cpVect *verts, cpTransform transform)
 Set the vertexes of a poly shape.
 
CP_EXPORT void cpPolyShapeSetRadius (cpShape *shape, cpFloat radius)
 Set the radius of a poly shape.
 

Detailed Description

These functions are used for mutating collision shapes.

Chipmunk does not have any way to get velocity information on changing shapes, so the results will be unrealistic. You must explicity include the chipmunk_unsafe.h header to use them.