Missing getter
Posted: Sun Jul 10, 2011 1:15 pm
Could a function for getting the segments in a polygon be added?
Support forum for the Chipmunk Physics engine
http://chipmunk-physics.net/forum/
Code: Select all
for(int i=0; i<count; i++){
cpVect a = cpBodyLocal2World(body, cpPolyShapeGetVert(poly, i));
cpVect b = cpBodyLocal2World(body, cpPolyShapeGetVert(poly, (i+1)%count);
...
}