Car Moving Hap hazardly

Hi,

I am trying to simulate a situation where the car need to jump from one block to another, for this the car comes at a speed and jump over a ramp , i use the below code to give car the speed...

level1World1.car1.b2body.ApplyImpulse(new V2(1, 0), level1World1.car1.b2body.GetWorldCenter());

but the car gains too much speed and almost starts to fly , is there a way i can define the gradual speed at which the car can move and then reach a max speed and not go beyond it ...

Thanks in advance ...

Regards
Jin
Hi,

I tried setting the linear velocity like this -

level1World.car.linearVelocityX=2.4;

but the vehicle now moves at a fixed speed, is there any other way ...

thanking you in advance ....

Regards
Jin
How about checking the velocity of the car, and applying less impulse depending on how fast it's moving. If it's already moving at the maximum speed you want, then the impulse would be zero.
@irrestibleforce - thanks a lot, that worked ...

Regards
Jin

Original thread: https://box2d.org/forum/viewtopic.php?t=9304