How to set fixed speed for physical object?

Hi,

I have some physical objects which keep going “forever”, problem is that after some time they
begin move too fast. And that’s of course because force is applied during collisions.
But i would like to have those objects maintain about same velocity all the time. As far I know there
is no direct way to do this, or is there?

If not, what could be best work around for that?

One solution what I have been thinking is to add damping to slow down objects, then check velocity
after each collision and add needed force to maintain certain speed.
Thanks in advance [import]uid: 78572 topic_id: 13918 reply_id: 313918[/import]

Hey there :slight_smile:

You could get the velocity; http://developer.anscamobile.com/content/game-edition-physics-bodies#body:getLinearVelocity

then if it’s greater than you’d like, put it down, or whatnot. [import]uid: 52491 topic_id: 13918 reply_id: 51281[/import]

you could set it is kinematic, then apply force to it, changing that force when you want. [import]uid: 68741 topic_id: 13918 reply_id: 51320[/import]