Munk2D Documentation  8.x.x
Loading...
Searching...
No Matches
cpSegmentShape

Functions

CP_EXPORT cpSegmentShapecpSegmentShapeAlloc (void)
 Allocate a segment shape.
 
CP_EXPORT cpSegmentShapecpSegmentShapeInit (cpSegmentShape *seg, cpBody *body, cpVect a, cpVect b, cpFloat radius)
 Initialize a segment shape.
 
CP_EXPORT cpShapecpSegmentShapeNew (cpBody *body, cpVect a, cpVect b, cpFloat radius)
 Allocate and initialize a segment shape.
 
CP_EXPORT void cpSegmentShapeSetNeighbors (cpShape *shape, cpVect prev, cpVect next)
 Let Chipmunk know about the geometry of adjacent segments to avoid colliding with endcaps.
 
CP_EXPORT cpVect cpSegmentShapeGetA (const cpShape *shape)
 Get the first endpoint of a segment shape.
 
CP_EXPORT cpVect cpSegmentShapeGetB (const cpShape *shape)
 Get the second endpoint of a segment shape.
 
CP_EXPORT cpVect cpSegmentShapeGetNormal (const cpShape *shape)
 Get the normal of a segment shape.
 
CP_EXPORT cpFloat cpSegmentShapeGetRadius (const cpShape *shape)
 Get the first endpoint of a segment shape.
 

Detailed Description