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?
Revolute Joint going past limits and getting stuck.
Bugs, Requests, and FeedbackI'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.
Helped me! Lost 2 hours on another solutions!
When i enable the motor to go one way it goes past the limit on that side.
เกมเสมือนจริง
เกมเสมือนจริง
Original thread: https://box2d.org/forum/viewtopic.php?t=9851