
Hello Friends.
This is my demo game screen-shoot. Here i am using three buttons. Right-bottom button is used for jump and left-bottom buttons used for move left and right.
I have some questions
1) should i use linearImpuls for jump body??
2) For move right and left which types of force i applied???
PLease tell me i am confusing to use linearImpuls, applyforce and linearVelocity.
Thanks in advance
For move left/right you can use velocity. When you need to stop your character, just set velocity to (0.f, 0.f). For jumps use impulse. If your b2World has gravity, it will calculate jump trajectory by itself.