Fix broad-phase becomming potentially invalid after collision group change

This commit is contained in:
Sébastien Crozet
2022-03-27 19:17:57 +02:00
committed by Sébastien Crozet
parent 0ac35e12a7
commit 7efcff615e
2 changed files with 16 additions and 1 deletions

15
.vscode/tasks.json vendored
View File

@@ -259,6 +259,21 @@
],
"group": "build"
},
{
"label": "🪲 debug 3d 💌 deterministic",
"type": "shell",
"command": "cargo",
"args": [
"run",
"--bin",
"all_examples3",
"--features",
"enhanced-determinism",
"--",
"--pause"
],
"group": "build"
},
{
"label": "🛠 tests",
"type": "shell",

View File

@@ -467,7 +467,7 @@ impl BroadPhase {
) = colliders.index_bundle(handle.0);
if !co_changes.needs_broad_phase_update() {
return;
continue;
}
let mut new_proxy_id = co_bf_data.proxy_index;