[resolved] How to slow the rotation of a revolute joint slowly to zero once moving?

Hello, I have a simple wheel that is anchored to a static-revolute joint.

It spins just fine but I want to be able to change how quickly it goes back to zero once moving. Density lets me control how easy it is to rotate, but how can I change how quickly it slows to zero?

Currently once it starts spinning it just turns for ever.

I have modified Density, friction, restitution of both the wheel and the anchor to no avail.

It needs to be able to spin in either direction, and either way slowly shrink to zero.

Thanks for any tips or clues you may be able to offer.

Kindly,

Sebastian. [import]uid: 150267 topic_id: 29195 reply_id: 329195[/import]

You could try setting the rotating body’s angularDamping to progressively higher values on an enterframe event listener until the object stops rotating.

Another way might be to apply applyAngularImpulse or applyTorque to the rotating object in the opposite direction to its current rotation, again on an enterframe until it’s almost stopped rotating. [import]uid: 9422 topic_id: 29195 reply_id: 117445[/import]

Setting a damping value should be enough to bring things to a halt. The higher the damping value the faster things should slow down. [import]uid: 36054 topic_id: 29195 reply_id: 117470[/import]

great thank you very much, resolved. [import]uid: 150267 topic_id: 29195 reply_id: 117923[/import]