rotation constraints with jit.phys objects

    Sep 16 2013 | 11:44 pm
    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.

    • Sep 17 2013 | 12:41 am
      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.