Hello all!
We're making a heavily physics based 2D sidescroller and ran into a fairly big problem.
I want the player to move at a max speed with a slight acceleration/deceleration from/to standstill, without affecting forces caused by gravity or collisions etc too much. The player will often hold other objects, which should weigh him down.
setLinearVelocity won't allow the last requirement, otherwise it'd have to do...
With other (3D) physics engines, I've been able to use a "2D planar joint" which limited the player's movement to the XY plane. On this joint I used a motor to move the character in the way I described above.
The problem is, I can't find a suitable joint for this in Box2D...
Ideas?
We're making a heavily physics based 2D sidescroller and ran into a fairly big problem.
I want the player to move at a max speed with a slight acceleration/deceleration from/to standstill, without affecting forces caused by gravity or collisions etc too much. The player will often hold other objects, which should weigh him down.
setLinearVelocity won't allow the last requirement, otherwise it'd have to do...
With other (3D) physics engines, I've been able to use a "2D planar joint" which limited the player's movement to the XY plane. On this joint I used a motor to move the character in the way I described above.
The problem is, I can't find a suitable joint for this in Box2D...
Ideas?