diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-05-19 19:47:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 19:47:59 +0200 |
commit | 896d84bd156ddc83bb4fd0fcac126662f3964f2b (patch) | |
tree | b5e0e60f043be333c39dcf0529c8474a47082f47 /doc/classes | |
parent | 9004943559cdcbe4bdf455f11d9602fa377d938a (diff) | |
parent | 88b1802132eef6f16b88f841a9886dbb293cbebc (diff) |
Merge pull request #48827 from Rhathe/set_iterations_master
Enable setting of collision iterations in PhysicsServer2D
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/PhysicsServer2D.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/PhysicsServer2D.xml b/doc/classes/PhysicsServer2D.xml index 229facd08b..cfa4215fd4 100644 --- a/doc/classes/PhysicsServer2D.xml +++ b/doc/classes/PhysicsServer2D.xml @@ -1018,6 +1018,15 @@ Activates or deactivates the 2D physics engine. </description> </method> + <method name="set_collision_iterations"> + <return type="void"> + </return> + <argument index="0" name="iterations" type="int"> + </argument> + <description> + Sets the amount of iterations for calculating velocities of colliding bodies. The greater the amount, the more accurate the collisions, but with a performance loss. + </description> + </method> <method name="shape_get_data" qualifiers="const"> <return type="Variant"> </return> |