Bounciness of rigid body?

Hello,

How to make a rigid body absolutely not bouncing?
Though I know little about programming and Java, I know almost nothing about physics.
I want the rigid body stop at the place where it collides with another body or geom.

Best regards,
Erke.

What simulator are you using? Your own?

OdeJava. Of course, I am using OdeJava.
I thought that this forum was for OdeJava.

no, physics are supposed to be discussed here in general.

But Odejava is a very commonly used physics simulator, so there are many posts about odejava here.

But you can also find discussions about other physics simulators (e.g. JOODE) here, too.
JOODE btw. is a pure Java implementation of Ode, which Odejava uses.

Set the bounce of the surface parameters to zero. global CFM to nearly 0. ERP to a high value. that should stop most of it. However the way collision detection works is by detecting the collision after it happens by penetration depth. Setting ERP to 1 corrects this error in one timestep, by applying a velocity to the body. So as all collisions have an error, and all collisions are corrected via an error correction velocity, so you can never completely remove a bit of bounce.
If you absolutely need it totally stationary, then detect when the collision has occurred and set the velocity to zero manually afterwards. Note unless ERP =1 and CFM =0, there will still be a small after collision becuase the error is not removed in one timestep, but setting the ERP to 1 and CFM to zero can cause problems elsewhere so this is not recommended.

Tom

ERP to 1 and CFM to zero == what Function? in ODEJava :stuck_out_tongue:

World.setErrorReductionParameter(float erp)
World.setConstraintForceMix(float cfm)

tnx ::slight_smile: