Soft joint limits #370
Replies: 2 comments
-
|
Hi @kermado |
Beta Was this translation helpful? Give feedback.
-
|
A fix is coming for this. In the meantime, it is simple to locally replicate the fix. The bug was that we limited soft limit impulses to be positive. We do need hard limits impulses to be positive but soft limits should be allowed to be positive and negative. CPUOpen ExtConstraintHelper.h. GPUFor gpu, the fix is similar. Open PxgConstraintHelper.h and repeat the pattern above in the function: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm seeing odd results in the behavior of joints with soft/spring limits.
I have a body with 1kg mass, limits set to (1, 1), stiffness set to 10 and damping set to 0. There is a D6 joint with the linear x-axis set to eLIMITED. In this case, everything is fine. The body oscillates with a period of 2 seconds.
However, if I make the spring critically damped by setting the damping to
2*sqrt(k*m) = 2*sqrt(10*1) ~= 0.6325, the behavior is not what I expect. The body overshoots. In fact, I can set the damping to a much higher value and the body still overshoots.It looks like the damping isn't being applied correctly. Is this to be expected, or should I log an issue?
Snippet to reproduce is below:
Beta Was this translation helpful? Give feedback.
All reactions