diff options
| author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-07-07 19:09:15 +0200 |
|---|---|---|
| committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-07-10 16:28:34 +0200 |
| commit | f0a145bbf52b44c5e45ee292935163bc882fa063 (patch) | |
| tree | 8916dffc139c16b29aae63d969ad897f81246fa1 /servers/physics_3d/physics_server_3d_sw.cpp | |
| parent | 56d712686496845cab3bfd6a6ed67e4efc2c39d5 (diff) | |
| download | redot-engine-f0a145bbf52b44c5e45ee292935163bc882fa063.tar.gz | |
Add a method to set the number of physics solver iterations in 3D
This is only for GodotPhysics, and adds a 3D counterpart to the 2D
method that was recently added.
Diffstat (limited to 'servers/physics_3d/physics_server_3d_sw.cpp')
| -rw-r--r-- | servers/physics_3d/physics_server_3d_sw.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/physics_3d/physics_server_3d_sw.cpp b/servers/physics_3d/physics_server_3d_sw.cpp index f26129a404..c1a9d6259d 100644 --- a/servers/physics_3d/physics_server_3d_sw.cpp +++ b/servers/physics_3d/physics_server_3d_sw.cpp @@ -1584,6 +1584,10 @@ void PhysicsServer3DSW::set_active(bool p_active) { active = p_active; }; +void PhysicsServer3DSW::set_collision_iterations(int p_iterations) { + iterations = p_iterations; +}; + void PhysicsServer3DSW::init() { last_step = 0.001; iterations = 8; // 8? |
