I am making a small game for myself, which includes a bouncing ball.
I am using physics engine ecause it makes everything more realistic, and I set gravity to 0,0.
Then when I start the game, I do this :
[lua] ball:applyLinearImpulse(1,1, ball.x, ball.y)[/lua]
Which makes the ball move.
But what I would like to do, is f.ex every 20 seconds, or if the ball hits a certain object, I would like to increase the speed of the ball.
I have tried apply tourque and force and angular force, but it never works as expected. All I want to do is increase the speed, without changing the angle of the movement.
I know I could draw the ball and move it myself, but I would never (IMHO) get the realistic effects of bouncing without writing a lot of code. [import]uid: 61610 topic_id: 11079 reply_id: 311079[/import]