Set a range of angles as constraint

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Dídac Coll
Posts: 8
Joined: Tue Jan 31, 2017 6:59 pm

Set a range of angles as constraint

Post by Dídac Coll » Mon Apr 03, 2017 8:32 am

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

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Set a range of angles as constraint

Post by jimmy d » Mon Apr 03, 2017 9:06 am

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.

POST REPLY