Вот код:
ball = [CCSprite spriteWithFile:@"Ball.png" rect:CGRectMake(0, 0, 52, 52)];
ball.position = ccp(300, 300);
ball.tag = 1;
[self addChild:ball z:-1];
// Create ball body
//b2BodyDef ballBodyDef;
ballBodyDef.type = b2_dynamicBody;
ballBodyDef.position.Set(100/PTM_RATIO, 300/PTM_RATIO);
ballBodyDef.userData = ball;
b2Body * ballBody = _world->CreateBody(&ballBodyDef);
// Create circle shape
b2CircleShape circle;
circle.m_radius = 20.0/PTM_RATIO;
// Create shape definition and add to body
b2FixtureDef ballShapeDef;
ballShapeDef.shape = &circle;
ballShapeDef.density = -2.5f;
ballShapeDef.friction = 0.01f;
ballShapeDef.restitution = 1.0f;
_ballFixture = ballBody->CreateFixture(&ballShapeDef);
b2Vec2 force = b2Vec2(5, 7);
ballBody->ApplyLinearImpulse(force, ballBodyDef.position);
Я хочу вращать, анимировать и перемещать мяч, но я в замешательстве, Как применить все вещи одновременно!?