btCompoundCollisionAlgorithm::calculateTimeOfImpact Appears to be broken? #3766
tjrtfarnham
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 am using CCD and trying to collide with a compound collision shape. I am seeing an assert immediately fire in btCompoundCollisionAlgorithm::calculateTimeOfImpact with comments like "needs to be fixed". If I step beyond the assert, I eventually crash in the call to m_childCollisionAlgorithms[i]->calculateTimeOfImpact. This seems to indicate that compound colliders are not available for CCD.
Before I abandon the use of compound colliders, I wanted to be sure that this is really a problem and that there is not a solution already available somewhere.
btCompoundCollisionAlgorithm::preallocateChildAlgorithms() appears to create a m_childCollisionAlgorithms array that has all of the entries set to null. compoundShape->getDynamicAabbTree() always is returning a valid (btDbvt *). It seems this is why calculateTimeOfImpact is crashing, since it assumes this array has valid entries.
Beta Was this translation helpful? Give feedback.
All reactions