Re: AMotor query

Mark Williams <[email protected]> Mon, 26 Nov 2007 10:24:10 -0800
Newsgroups gmane.comp.lib.ode
Message-ID <[email protected]>
> Did you consider connecting them to the environment using fixed joints?
>
>   
I believe that because the environment is static then the contact joints 
still won't be receiving any velocity information about the
non-dynamic body. In the end I've decided to patch ODE so that I can 
scale the forces/torques applied to either body by a paritcular joint. 
Currently I have a function:

dJointSetBodyForceScale( dJoint joint, dReal body1scale, dReal body2scale )

So when attaching a contact joint I can just set the scale to 0.0 for 
the body I wish to remain unchanged by the simulation. I'll probably 
extend this so that the forces and torques can be scaled independently.

If anybody is interested in this, or has any suggestions as to how it 
could be improved then let me know, and I'll submit a patch to Sourceforge.

Cheers,
Mark