-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hit an assert in DynamicsWorld::integrateRigidBodiesVelocities #53
Comments
Hi Backtrace with debug build looks like:
I need collision bodies for several game features. Best regards |
Hello. It seems to happen in the call of the DynamicsWorld.update() method. Are you doing something special in your code before you call this method (between this call and the previous one) ? Like adding, removing bodies from the world ? Also, where the assert is hit, can I ask you what is the value of the variables "indexBody" and "mSplitLinearVelocities.size()" ? |
I will do today. |
I am adding a collision body in a frame and then just remove it after several frames(means after several world.update() calls). So nothing special at all. Meanwhile I do not add or remove bodies. |
I have added the following line to debug:
(mSplitLinearVelocities is a C++ Array, not a STL container or something) Before the game crashes it prints: |
Oh overread that too fast. Also, where the assert is hit, can I ask you what is the value of the variables "indexBody" and "mSplitLinearVelocities.size()" ? I will check tomorrow. I have made changes to TDME2 that requires me to modify game logics too. |
Hi, please see attached a patch that fixes the crash.
Best regards |
Yes thanks. I have also found how to solve it yesterday evening with this commit. I was just running some tests to see that this fix was OK. I think our patches are similar. I have pushed my changes into the develop branch. Could you test if the issue is also resolved on your side with the develop branch ? |
Ok. Nice. Will test later today. |
Seems to be fixed. Thank you. |
Ok Thanks. The fix is now merged in the master branch. |
Hi,
I am hitting an assert when moving a dynamic rigid body into a static rigid body(also into a collision body).
Assertion failed: (mSplitLinearVelocities[indexBody] == Vector3(0, 0, 0)), function integrateRigidBodiesVelocities, file ext/reactphysics3d/src/engine/DynamicsWorld.cpp, line 297.
The game crashes then. Also when disabling asserts.
The backtrace looks like:
I will try to get a backtrace of debug build soon too.
Best regards
Andreas
The text was updated successfully, but these errors were encountered: