Page 1 of 1

Set a range of angles as constraint

Posted: Mon Apr 03, 2017 8:32 am
by didix21
Hello,

I'm using a PinJoint joint and I want that joint only move inside a range of angles. For example, between 0 and pi/2. I could see that it can set a range of angles inside the joint but it is not doing what I expected. In other words, when I applie a torque force, the body starts to rotate. Any idea how to solve it ?

Thanks

Re: Set a range of angles as constraint

Posted: Mon Apr 03, 2017 9:06 am
by jimmy
Ranges (locks and clamps) are only for inverse methods (IK, ID, SO) — they are not respected in Forward dynamics.

You will have to add a constraint or a force to the joint. The coordinate limit force may be exactly what you are after.