summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRhathe <rassinator@gmail.com>2021-05-19 02:19:58 -0400
committerRhathe <rassinator@gmail.com>2021-05-19 10:54:10 -0400
commit88b1802132eef6f16b88f841a9886dbb293cbebc (patch)
tree88c9b44f93ab599f9f7d68aedcd81b16dd95b7ce /doc/classes
parentc340ed63943aa7c02064e536ff302de300a02ec2 (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.xml9
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>