[ODE] Modifying contact forces

Erwin de Vries erwin at vo.com
Sat Jun 28 05:54:02 2003


Hi,

How hard would it be to implement an extra parameter in the contact joint
that is sort of a multiplier for the joint forces.

Example:
In a void b1 and b2 collide. b1 and b2 have exactly the same parameters, so
the forces on both bodies will be equal. To simplify it could be said that
b1 gets 50% of the force and b2 gets 50% of the force. Now imagine i would
want b1 to get 75% of the force and b2 25%. I could tell this to the contact
joint by passing in a 'blend' that specifies how i want the force being
distributed. 0.0 means that b1 gets no force, and b2 100%, 0.75 means that
b1 gets 75% force and b2 gets 25% force. Would this be possible without some
serious changes to the code?

Erwin