You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Test collision mask before creating constraint pair in Godot physics
broadphase 2D and 3D.
This commit is contained in:
@@ -159,9 +159,12 @@ void BroadPhase2DBasic::update() {
|
||||
if (pair_ok && !E) {
|
||||
|
||||
void *data = NULL;
|
||||
if (pair_callback)
|
||||
if (pair_callback) {
|
||||
data = pair_callback(elem_A->owner, elem_A->subindex, elem_B->owner, elem_B->subindex, unpair_userdata);
|
||||
pair_map.insert(key, data);
|
||||
if (data) {
|
||||
pair_map.insert(key, data);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user