Box2D platformer movement. Should i mess with velocity?
- by Romeo
I have a platformer game in which I implemented the movement using a wheel attached to the hero. For jumping I use this:
player.body.applyLinearImpulse(new Vec2(0, 30000000), player.body.getPosition());
The problem is that the xVelocity doesn't remain the same during the jump so it isn't looking natural. Is there any way to modify only the x…