Skip to content

Trigger Collider are active when added to an inactive RigidBody #402

@MonsieurBleu

Description

@MonsieurBleu

I am currently making a RigidBody reader/loader from simple text files and I encountered a strange bug, I am working on v0.10.1.

When a rigidbody is created, and put in an inactive state, every trigger collider added to that body will be active. They actually trigger my event listener and each time the body is set to active the program crash with an assertion fail :

Assertion failed: collider->getBroadPhaseId() == -1, file [...]\reactphysics3d-0.10.1\src\systems\BroadPhaseSystem.cpp, line 82

Likely because the program tries to add a collider to the body, but the collider is already active and has a broadphaseID.
The last important thing important to note is that all the loading part is done before any physicworld update.

My problem was solved by loading the 'isActive' element in the very end, after adding all the colliders. But the larger problem still persists on rp3d.

Metadata

Metadata

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions