Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix collisions not being cleared for immediately despawned entities (#…
…642) # Objective Fixes #533 There is currently a bug where despawning an entity as soon as a collision starts never ends up removing the collision, meaning that `CollisionEnded` is not sent and the despawned entity is not removed from `CollidingEntities`. This is caused by collision states not being updated correctly for despawns. ## Solution Reset the collision states when an entity is missing such that the collision will be treated as ended. Note that the way this is handled will change substantially when we implement a contact graph and rework contact management, but regardless, I think it is important to have a fix for it now as it is a serious bug.
- Loading branch information