Hi guys, I am making a 2d sidescrolling racing game, and I want to introduce a turbo that doesn't use the wheels (i.e. it works also on the air). Obviously the problem is the stability, because the car is longer on the x axis, so my idea was to pull the car from the front, and I am not achieving that. I am using this
body.applyLinearImpulse(new Vector2(1,0), new Vector2(body.getWorldCenter().x+m_size.x/2, body.getWorldCenter().y));
It looks like independently on where I apply the impulse, the car is being pushed from behind, and the back part of the car goes up and the car turns upside down. So what would you say it is a decent way to do this and why isn't it working as I would expect?
Thanks.
body.applyLinearImpulse(new Vector2(1,0), new Vector2(body.getWorldCenter().x+m_size.x/2, body.getWorldCenter().y));
It looks like independently on where I apply the impulse, the car is being pushed from behind, and the back part of the car goes up and the car turns upside down. So what would you say it is a decent way to do this and why isn't it working as I would expect?
Thanks.
