Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- b2Vec2 force = b2Vec2(0.0,15.0);
- ballBody->SetLinearVelocity(force);
- float angleRadians = atan2(touchBegin.x - touchEnd.x, touchBegin.y - touchEnd.y);
- float angleDegrees = CC_RADIANS_TO_DEGREES(angleRadians);
- cocosAngle1 = -1 * angleDegrees;
Add Comment
Please, Sign In to add comment