You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Move Bullet physics query flush from Bullet space pre-tick callback to
Bullet physics flush_queries() as is done in Godot physics, and remove the pre-tick callback.
This commit is contained in:
@@ -1557,6 +1557,13 @@ void BulletPhysicsServer3D::sync() {
|
||||
}
|
||||
|
||||
void BulletPhysicsServer3D::flush_queries() {
|
||||
if (!active) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < active_spaces_count; ++i) {
|
||||
active_spaces[i]->flush_queries();
|
||||
}
|
||||
}
|
||||
|
||||
void BulletPhysicsServer3D::finish() {
|
||||
|
||||
Reference in New Issue
Block a user