rotation constraints with jit.phys objects

Sep 16, 2013 at 4:44pm

rotation constraints with jit.phys objects

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.
<code>

– Pasted Max Patch, click to expand. –

</code>

#265458
Sep 16, 2013 at 5:41pm

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.

<code>

– Pasted Max Patch, click to expand. –

</code>

#265462

You must be logged in to reply to this topic.