Guest User

Untitled

a guest
Jan 21st, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. b2Vec2 force = b2Vec2(0.0,15.0);
  2.  
  3. ballBody->SetLinearVelocity(force);
  4.  
  5. float angleRadians = atan2(touchBegin.x - touchEnd.x, touchBegin.y - touchEnd.y);
  6. float angleDegrees = CC_RADIANS_TO_DEGREES(angleRadians);
  7. cocosAngle1 = -1 * angleDegrees;
Add Comment
Please, Sign In to add comment