Constrain a ragdoll upon 2 axis'

Hello FP Lua kings!

I am trying to do a very secret project. What I desperately need, however, is to constrain a ragdoll upon 2 axises, think a side scroller. I know this has been done before, but not necesarily with a ragdoll. The whole ragdoll doesn’t need to be costrained, really just the uperbody. How would I go about doing this? Or is it impossible?

Thanks in advance,
-Jake

This is somewhat of a hack, but every frame/think/tick you could set it’s velocity to not have any distance on the axis you wish to remove.

Worked perfect :D. Thanks for the help!