Code: Select all
vec2 originalCursorPosition = getCursor();
body[] bs = sb();
for (uint i = 0; i < bs.length; i++) {
body b = bs[i];
setCursor( b.pos );
fixture[] fs = b.getFixtures();
for (uint k = 0; k < fs.length; k++) {
fixture f = fs[k];
rotate( f.getVertices(), 0, b.getAngle() );
}
b.setAngle( 0 );
}
setCursor( originalCursorPosition );