Guest User

Untitled

a guest
Jan 17th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. if(dpad.leftJoystick.velocity.x > 0){
  2. b2Vec2 force;
  3. force.Set(dpad.leftJoystick.velocity.x * 10.0f, 0.0f);
  4. Player.body->ApplyForce(force, Player.body->GetPosition());
  5. }
Add Comment
Please, Sign In to add comment