dCustomHinge: Using angle limits with EnableMotor()

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

dCustomHinge: Using angle limits with EnableMotor()

Postby misho » Thu Apr 23, 2020 3:33 pm

Hi everyone,

I am trying to impose angle limits on a hinge joint, while at the same time using EnableMotor() functionality. Separately, both features work: If I enable angle limits on a free hinge joint, they function properly. But when I use EnableMotor() feature on the joint, the angle limits seem to be ignored.

I was expecting that, when "powered" by EnableMotor(), the joint would stop at the angle limit.

Obviously, one way to have this working is to monitor the angle of the joint, and when the limit is reached, turn off the EnableMotor(), or, reverse its direction, if needed. But I was hoping this functionality would have been already implicitly included in the code.

For the reference, I am experimenting with code in StandardJoints demo in demoSandBox.

Am I missing something?
Misho Katulic
CTO, FSX SpacePort
TerraBuilder
www.terrabuilder.com
misho
 
Posts: 673
Joined: Tue May 04, 2010 10:13 am

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 39 guests