reactphysics3d: Convex vs Capsule normal assert failed
What could possibly lead to this issue?
Assertion failed: contactNormal.length() > 0.8f , at: reactphysics3d/collision/narrowphase/NarrowPhaseInfoBatch.h,168,addContactPoint
| $reactphysics3d::SATAlgorithm::computeCapsulePolyhedronFaceContactPoints(unsigned int, float, reactphysics3d::ConvexPolyhedronShape const*, float, reactphysics3d::Transform const&, reactphysics3d::Vector3&, reactphysics3d::Vector3 const&, reactphysics3d::Vector3 const&, reactphysics3d::Vector3 const&, reactphysics3d::NarrowPhaseInfoBatch&, unsigned int, bool) const | @ | first-person-shooter.wasm:0x724b04
| $reactphysics3d::CapsuleVsConvexPolyhedronAlgorithm::testCollision(reactphysics3d::NarrowPhaseInfoBatch&, unsigned int, unsigned int, bool, reactphysics3d::MemoryAllocator&) | @ | first-person-shooter.wasm:0x743bb0
| $reactphysics3d::CollisionDetectionSystem::testNarrowPhaseCollision(reactphysics3d::NarrowPhaseInput&, bool, reactphysics3d::MemoryAllocator&) | @ | first-person-shooter.wasm:0x750c66
| $reactphysics3d::CollisionDetectionSystem::computeNarrowPhase() | @ | first-person-shooter.wasm:0x74a1b9
| $reactphysics3d::CollisionDetectionSystem::computeCollisionDetection()
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (10 by maintainers)
I am also using Blender most of the time.
Note that I am currently working on implementing a quickhull algorithm inside the ReactPhysics3D library as you can see in this branch here. This way, it will be possible to create a ConvexMeshShape with simply an array of 3D points. This will be released in the next version of the library.
Yes I totally agree with you. I will add checks for this inside the code that creates the convex mesh.