[ODE] A slider joint to bond an axis-aligned body with a rigid bodygroup?

Geoff Carlton gcarlton at iinet.net.au
Thu Oct 14 10:45:27 MST 2004


If you want a slider+ball joint, your best bet may be to create a new 
joint type that does exactly that. 

It sounds complex, but it should actually be pretty easy.  Have a look 
at the slider2 joint I made up (either at ode patch page, or on 
www.zenohm.com); in a couple of lines that joint type would have the 
functionality you require.

You would merely have to change slider2GetInfo1() to return '3's instead 
of '6's, and drop out the line "setFixedOrientation(joint, info, 
joint->qrel, 3);" from slider2GetInfo2().  That should be it, I think. :-)

If it works you could always extend the slider2 with a 
dSetSlider2FixedOrientation(bool) type interface - I'd like to have that 
joint type in my collection.

Geoff



More information about the ODE mailing list