dJointSetBodyForceScale (Was: AMotor query )
Mark Williams <[email protected]> Mon, 26 Nov 2007 13:59:24 -0800
| Newsgroups | gmane.comp.lib.ode |
|---|---|
| Message-ID | <[email protected]> |
Mark Williams wrote: >> 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. > I've just put this patch up into the sourceforge tracker, ID 1839013. Cheers, Mark