Это код:
for(NSValue *fixtureValue in fixtures)
{
b2Fixture *fixture;
fixture = (b2Fixture*)[fixtureValue pointerValue];
if(contact.fixtureA==fixture && contact.fixtureB == carFixture)
{
NSLog(@"Car hit outersquare!");
[redcar stopAction:moveAction];
_world->DestroyBody(bodyB); // does not destroy body
[self createCarBody];
speed = 0;
break;
}
}
please help...