"applyForce" ?

I’m a little confused about the “applyForce” function…

In a little app, I have a single ball with walls on 4 sides, turned off gravity, no friction, bounce=1, and I apply a linear force thru “applyForce”.

What happens is similar to “setLinearVelocity”: speed remains the same and the ball bounces forever.

What I expected was acceleration and a bounce back from where it started…

Is my “physics” wrong? :wink:

Thanks, Frank. [import]uid: 8093 topic_id: 1936 reply_id: 301936[/import]

Currently, you’ve got a world with no gravity, no friction, and 100% bounce – you’ve created perpetual motion! :slight_smile:

If you want the ball not to bounce forever, you need to simulate energy loss one way or another. You could set the bounce to 0.5, so it would essentially lose half of its force on each collision. Or you could add some damping:

ball.linearDamping = 0.3  

…which is what SimplePool does to simulate the friction of the felt, which causes the balls to slow down and eventually stop. [import]uid: 3007 topic_id: 1936 reply_id: 5880[/import]