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 /doc/classes | |
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 '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> |