diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-12-06 16:49:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-06 16:49:42 +0100 |
| commit | 4bce5e302ef8cc6fcd0caf5137f0c1d3abdb88c2 (patch) | |
| tree | d09ba42181856f0fea07228b450dcb9ffc9fff39 /servers/physics_3d/godot_step_3d.cpp | |
| parent | 3ae8eda1ed30b6c32f6fc1141118c5a062161a96 (diff) | |
| parent | 2273a78af1034b23b6bdefd993c41a27b4847d4b (diff) | |
| download | redot-engine-4bce5e302ef8cc6fcd0caf5137f0c1d3abdb88c2.tar.gz | |
Merge pull request #55602 from nekomatata/improve-rigidbody-contacts
Diffstat (limited to 'servers/physics_3d/godot_step_3d.cpp')
| -rw-r--r-- | servers/physics_3d/godot_step_3d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/physics_3d/godot_step_3d.cpp b/servers/physics_3d/godot_step_3d.cpp index 5453c4415c..6332532f6e 100644 --- a/servers/physics_3d/godot_step_3d.cpp +++ b/servers/physics_3d/godot_step_3d.cpp @@ -181,14 +181,14 @@ void GodotStep3D::_check_suspend(const LocalVector<GodotBody3D *> &p_body_island } } -void GodotStep3D::step(GodotSpace3D *p_space, real_t p_delta, int p_iterations) { +void GodotStep3D::step(GodotSpace3D *p_space, real_t p_delta) { p_space->lock(); // can't access space during this p_space->setup(); //update inertias, etc p_space->set_last_step(p_delta); - iterations = p_iterations; + iterations = p_space->get_solver_iterations(); delta = p_delta; const SelfList<GodotBody3D>::List *body_list = &p_space->get_active_body_list(); |
