Fix issue with the list of contact manifolds of a CollisionBody that was not cleared
This commit is contained in:
parent
1c12ffe287
commit
d15a41f0cc
|
@ -186,6 +186,9 @@ void CollisionWorld::destroyCollisionBody(CollisionBody* collisionBody) {
|
||||||
// Add the body ID to the list of free IDs
|
// Add the body ID to the list of free IDs
|
||||||
mFreeBodiesIds.add(collisionBody->getId());
|
mFreeBodiesIds.add(collisionBody->getId());
|
||||||
|
|
||||||
|
// Reset the contact manifold list of the body
|
||||||
|
collisionBody->resetContactManifoldsList();
|
||||||
|
|
||||||
// Call the destructor of the collision body
|
// Call the destructor of the collision body
|
||||||
collisionBody->~CollisionBody();
|
collisionBody->~CollisionBody();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user