This patch add new feature to ODE allowing disabling joint constraint forces from being applied to attached bodies. In other words, it is possible to connect two bodies with a joint, but only one will be affected by joint.
- two new flags for joint:
- four new joint functions:
* void dJointSetConstraint1 ( dJointID j, int mode )
* void dJointSetConstraint2 ( dJointID j, int mode )
* int dJointGetConstraint1 ( dJointID j )
* int dJointGetConstraint2 ( dJointID j )
An example of usage is chain of rigid bodies, that one of rigid bodies (let say at the top of chain) is disabled from being affected by joints. Disabling for it gravity will result in perfectly pinned body without fixed joint and errors(!). More over, it is possible to move this body in world and chain will follow (see attached example).
Attached you will find patch created on revision 1550 and modified demo_chain1.c that show usage.