Assert in multiply2_p8r #3480
Replies: 3 comments
-
In case this is helpful, this is the code where I setup the joints. When I have 2 hinge joints enabled as in the code below, the code crashes as mentioned above if( true )
} { btVector3 zAxis(0,0,1); if( true ) |
Beta Was this translation helpful? Give feedback.
-
The btGeneric6DofSpringConstraint will be deprecated and replaced by btGeneric6DofSpring2Constraint. Not sure if it will suffer the same issue. Thanks for the report! |
Beta Was this translation helpful? Give feedback.
-
I have similar issues with modified btGeneric6DofSpring2Constraint. In my case assert hits after I disable constraints due to breaking. Basic issue is that infom may get set to zero which causes assert failure later in multiply2_p8r
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
See description here:
http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=10413
I managed to avoid the assert by enabling the motors before the first step is made.
Apparently a btGeneric6DofConstraint has its m_numConstraintRows by default set to 0 but m_numConstraintRows is increased by 1 for every linear limit that needs to apply a force or angular limit that needs to apply a torque. For the last check to be positive, the motor needs to be enabled.
For me the assert was called when adding a second hinge constraint in the scene. So even though in other cases m_numConstraintRows of the btGeneric6DofConstraint was zero, it did not call the assert in those cases. So I'm not truly understanding what went wrong and why, but at least things are working :-)
Beta Was this translation helpful? Give feedback.
All reactions