Impulse in the direction

Hello,

I have a ball which is rolling, I want the ball to have an impulse in the direction it is in.If it hits a bump and flies up, when you apply the linear impulse it will go faster upwards. If it is going back down, when you apply the impulse it will have an impulse going faster downwords. I am using linear impulse’s such as the one below. But it is in one set direction, how would we make it have an impulse in the direction it is going.
I have seen this code, you can set wich force you want. But how can the force change upon what position the ball is moving towards?

body:applyLinearImpulse( xForce, yForce, bodyX, bodyY )

Thank You Very Much.
Help is greatly appreciated. :slight_smile: [import]uid: 23689 topic_id: 11489 reply_id: 311489[/import]