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.
This commit is contained in:
parent
56d7126864
commit
f0a145bbf5
8 changed files with 23 additions and 2 deletions
|
|
@ -1187,6 +1187,16 @@
|
|||
Activates or deactivates the 3D 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 of iterations, the more accurate the collisions will be. However, a greater amount of iterations requires more CPU power, which can decrease performance. The default value is [code]8[/code].
|
||||
[b]Note:[/b] Only has an effect when using the default GodotPhysics engine, not the Bullet physics engine.
|
||||
</description>
|
||||
</method>
|
||||
<method name="shape_get_data" qualifiers="const">
|
||||
<return type="Variant">
|
||||
</return>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue