在 transformPosition 方法中,我们可以为特定的精灵应用角度,如下所示;
[sprite transformPosition:ccpAdd(sprite.position,
ccpMult(ccpForAngle(angle), ANY_VELOCITY))];
是否可以在 ApplyLinearImpulse 方法的参数中使用角度和速度以及如何使用?下面是该方法的正常声明。我们可以用我们上面使用的某个角度和速度来替换那个 b2Vec2(90, 0) 吗?
body->ApplyLinearImpulse(b2Vec2(90, 0), body->GetWorldCenter());