rotation constraints with jit.phys objects

piet's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Hello.
discovering the jit.phys objects family, I wanted to simulate a cube mounted on a tripod head.
When moving this cube with the jit.phys.picker I can get the x and y rotation (azimuth and elevation)
The problem is that I don"t know which jit.phys object is the best to constrain my cube to these two axes only.
I played with jit.phys.6dof (and its lower/upper limit angle attributes), but I can't get rid of the spining.
Should I use two jit.phys.hinges for this simulation?
Thanks.

Rob Ramirez's icon
Max Patch
Copy patch and select New From Clipboard in Max.

6dof is the one to use.
simply set the upper and lower limits of the axis you want to lock to 0, and adjust the other two axis limits based on the amount of movement you want to allow.