Skip to content

Fix removing colliders from contact graph EntityDataIndex#688

Merged
Jondolf merged 1 commit intomainfrom
fix-collider-removal
Apr 1, 2025
Merged

Fix removing colliders from contact graph EntityDataIndex#688
Jondolf merged 1 commit intomainfrom
fix-collider-removal

Conversation

@Jondolf
Copy link
Member

@Jondolf Jondolf commented Apr 1, 2025

Objective

When a collider is removed from the contact graph, the EntityDataIndex used for mapping entities to graph nodes is not updated. This can cause bugs and even crashes when an entity with the same index is removed and later added back to the graph.

Solution

Remove colliders from the EntityDataIndex in ContactGraph::remove_collider_with.

@Jondolf Jondolf added C-Bug Something isn't working A-Collision Relates to the broad phase, narrow phase, colliders, or other collision functionality P-Crash A sudden unexpected crash labels Apr 1, 2025
@Jondolf Jondolf added this to the 0.3 milestone Apr 1, 2025
@Jondolf Jondolf enabled auto-merge (squash) April 1, 2025 16:26
@Jondolf Jondolf merged commit 86f3c48 into main Apr 1, 2025
5 checks passed
@Jondolf Jondolf deleted the fix-collider-removal branch May 8, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Collision Relates to the broad phase, narrow phase, colliders, or other collision functionality C-Bug Something isn't working P-Crash A sudden unexpected crash

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant