Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.10.0: Assertion Failed in NarrowPhaseInfoBatch::addContactPoint() #381

Closed
robertocapuano opened this issue Apr 12, 2024 · 2 comments
Closed
Assignees
Milestone

Comments

@robertocapuano
Copy link
Contributor

I'm using a series of CapsuleShapes joined together and after some time the anomaly is raised.
This happens also in last version 0.10.0.

Assertion failed: (penDepth > decimal(0.0)), function addContactPoint, file NarrowPhaseInfoBatch.h, line 167.

#4 0x00000001003ceac3 in reactphysics3d::NarrowPhaseInfoBatch::addContactPoint(unsigned int, reactphysics3d::Vector3 const&, float, reactphysics3d::Vector3 const&, reactphysics3d::Vector3 const&) [inlined] at /modules/reactphysics3d/include/reactphysics3d/collision/narrowphase/NarrowPhaseInfoBatch.h:167
#5 0x00000001003ceaa4 in reactphysics3d::CapsuleVsCapsuleAlgorithm::testCollision(reactphysics3d::NarrowPhaseInfoBatch&, unsigned int, unsigned int, reactphysics3d::MemoryAllocator&) (.cold.3) at /modules/reactphysics3d/src/collision/narrowphase/CapsuleVsCapsuleAlgorithm.cpp:195
#6 0x00000001003ce972 in reactphysics3d::NarrowPhaseInfoBatch::addContactPoint(unsigned int, reactphysics3d::Vector3 const&, float, reactphysics3d::Vector3 const&, reactphysics3d::Vector3 const&) [inlined] at /modules/reactphysics3d/include/reactphysics3d/collision/narrowphase/NarrowPhaseInfoBatch.h:167
#7 0x00000001003ce96d in reactphysics3d::CapsuleVsCapsuleAlgorithm::testCollision(reactphysics3d::NarrowPhaseInfoBatch&, unsigned int, unsigned int, reactphysics3d::MemoryAllocator&) at modules/reactphysics3d/src/collision/narrowphase/CapsuleVsCapsuleAlgorithm.cpp:195
#8 0x0000000100430505 in reactphysics3d::CollisionDetectionSystem::testNarrowPhaseCollision(reactphysics3d::NarrowPhaseInput&, bool, reactphysics3d::MemoryAllocator&) at /modules/reactphysics3d/src/systems/CollisionDetectionSystem.cpp:647
#9 0x000000010042c71d in reactphysics3d::CollisionDetectionSystem::computeNarrowPhase() at /modules/reactphysics3d/src/systems/CollisionDetectionSystem.cpp:704
#10 0x0000000100468fcb in reactphysics3d::PhysicsWorld::update(float) at /modules/reactphysics3d/src/engine/PhysicsWorld.cpp:255

@robertocapuano robertocapuano changed the title Assertion Failed in NarrowPhaseInfoBatch::addContactPoint() v0.10.0: Assertion Failed in NarrowPhaseInfoBatch::addContactPoint() Apr 12, 2024
@robertocapuano
Copy link
Contributor Author

I suppose the cause is the same of SphereVsSphereAlgorithm where a double check on penetrationDepth is perfromed.
Added a pull request for this issue:
#382

@DanielChappuis DanielChappuis added this to the v0.10.1 milestone Jun 13, 2024
@DanielChappuis DanielChappuis self-assigned this Jun 13, 2024
@DanielChappuis
Copy link
Owner

This issue should now be fixed in release of version v0.10.1. Thanks again for reporting this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants