diff options
author | Rhathe <rassinator@gmail.com> | 2021-05-19 02:19:58 -0400 |
---|---|---|
committer | Rhathe <rassinator@gmail.com> | 2021-05-19 10:54:10 -0400 |
commit | 88b1802132eef6f16b88f841a9886dbb293cbebc (patch) | |
tree | 88c9b44f93ab599f9f7d68aedcd81b16dd95b7ce /servers/physics_2d/physics_server_2d_sw.h | |
parent | c340ed63943aa7c02064e536ff302de300a02ec2 (diff) |
Enable setting of collision iterations in PhysicsServer2D
This allows fine-tuning of collision iterations for more
accurate collision physics with a performance cost.
Diffstat (limited to 'servers/physics_2d/physics_server_2d_sw.h')
-rw-r--r-- | servers/physics_2d/physics_server_2d_sw.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/physics_2d/physics_server_2d_sw.h b/servers/physics_2d/physics_server_2d_sw.h index efa0784245..f1eb78a776 100644 --- a/servers/physics_2d/physics_server_2d_sw.h +++ b/servers/physics_2d/physics_server_2d_sw.h @@ -288,6 +288,8 @@ public: virtual void end_sync() override; virtual void finish() override; + virtual void set_collision_iterations(int p_iterations) override; + virtual bool is_flushing_queries() const override { return flushing_queries; } int get_process_info(ProcessInfo p_info) override; |