Revolute Joint going past limits and getting stuck.

General Box2D issues or C++ specific issues
dixondean25
Posts: 2
Joined: Mon Aug 05, 2013 7:28 pm

Revolute Joint going past limits and getting stuck.

Postby dixondean25 » Fri Jul 18, 2014 10:51 am

I have a revolute joint with an upper limit of 100, and a lower limit of 30. When i enable the motor to go one way it goes past the limit on that side, and when i try to get it going the other way it gets stuck for about 2 steps on average. For example the revolute joint will stop at 100.3 or even 101 sometimes, and 29 or 28.5. I think it's because the revolute joint is going past the limit, and the joint is getting stuck beyond the limit for a few steps. My motor torque is extremely high because i want instant movement, so it's not because the torque is low. Any suggestions?

dixondean25
Posts: 2
Joined: Mon Aug 05, 2013 7:28 pm

Re: Revolute Joint going past limits and getting stuck.

Postby dixondean25 » Fri Jul 18, 2014 11:48 am

I've solved it. The revolute joint was indeed getting stuck beyond the limit. I ended up changing the limits to 110 and 20, pretty much adding 10 more degrees of freedom on both ends. Then I manually stopped the revolute joint (motorSpeed = 0) when it got past 100 or 30. It now moves simultaneously back and forth, and never goes past the limits. But it still stops when it needs to.

them
Posts: 1
Joined: Thu Jan 07, 2016 10:44 am

Re: Revolute Joint going past limits and getting stuck.

Postby them » Thu Jan 07, 2016 10:46 am

Helped me! Lost 2 hours on another solutions!


Return to “Bugs, Requests, and Feedback”



Who is online

Users browsing this forum: No registered users and 1 guest