diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-02 08:43:16 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-02 08:43:16 +0200 |
commit | 42398b5f1797238bb9fa9cf332680d5005aa1716 (patch) | |
tree | 04856ee92b23c5ea34cc39d708881796ca4cad8c /servers/physics_2d/godot_physics_server_2d.cpp | |
parent | c6fd311da0d0052bb11237662ec528f9fab1b7dd (diff) | |
parent | 15d057c5211270605d4344165930bba9c5d7e2aa (diff) |
Merge pull request #65223 from jtnicholl/is_zero_approx
Diffstat (limited to 'servers/physics_2d/godot_physics_server_2d.cpp')
-rw-r--r-- | servers/physics_2d/godot_physics_server_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics_2d/godot_physics_server_2d.cpp b/servers/physics_2d/godot_physics_server_2d.cpp index c728dccd4f..cec31bdc31 100644 --- a/servers/physics_2d/godot_physics_server_2d.cpp +++ b/servers/physics_2d/godot_physics_server_2d.cpp @@ -848,7 +848,7 @@ void GodotPhysicsServer2D::body_set_constant_force(RID p_body, const Vector2 &p_ ERR_FAIL_COND(!body); body->set_constant_force(p_force); - if (!p_force.is_equal_approx(Vector2())) { + if (!p_force.is_zero_approx()) { body->wakeup(); } } |