How to stop object from exceeding a certain speed

KYOWhzW.png

I have noticed that over time the ball in the center keeps speeding up. Is there a way I can prevent this? and keep the ball at a constant speed.

Physics info

Gravity = 0,0

Ball:

bounce = 1

density = 0

Ring:

bounce = 0

density = 2

friction = 0

how exactly are you moving the Ball, it would help if you posted some code.

I’m just applying a force in the beginning and then letting it bounce around. 

bump?

Bounce values of 1 or more tend to create strange results because nothing in the real world bounces indefinitely.

Anyway, you can cap the speed by registering an enterFrame handler, then inside the handler, check the linear velocity using getLinearVelocity(), and if it’s higher than whatever threshold you want, cap it using setLinearVelocity()

how exactly are you moving the Ball, it would help if you posted some code.

I’m just applying a force in the beginning and then letting it bounce around. 

bump?

Bounce values of 1 or more tend to create strange results because nothing in the real world bounces indefinitely.

Anyway, you can cap the speed by registering an enterFrame handler, then inside the handler, check the linear velocity using getLinearVelocity(), and if it’s higher than whatever threshold you want, cap it using setLinearVelocity()