aboutsummaryrefslogtreecommitdiff
path: root/doc/classes/PhysicsServer.xml
diff options
context:
space:
mode:
authorRémi Verschelde2017-11-13 09:24:36 +0100
committerRémi Verschelde2017-11-13 09:25:53 +0100
commit2fce0010f0d0eb2476028ed62335508bceabd820 (patch)
tree208bd6159aff3ae2a6e5add28de99518f1a0b13c /doc/classes/PhysicsServer.xml
parentdc4be4350a4aac91a342001e1b6d2eaa11d0b4b8 (diff)
downloadgodot-2fce0010f0d0eb2476028ed62335508bceabd820.tar.gz
godot-2fce0010f0d0eb2476028ed62335508bceabd820.tar.zst
godot-2fce0010f0d0eb2476028ed62335508bceabd820.zip
classref: Sync with current source
[ci skip]
Diffstat (limited to 'doc/classes/PhysicsServer.xml')
-rw-r--r--doc/classes/PhysicsServer.xml22
1 files changed, 21 insertions, 1 deletions
diff --git a/doc/classes/PhysicsServer.xml b/doc/classes/PhysicsServer.xml
index b0f42b83a..c165ee3c1 100644
--- a/doc/classes/PhysicsServer.xml
+++ b/doc/classes/PhysicsServer.xml
@@ -388,6 +388,14 @@
Returns the [PhysicsDirectBodyState] of the body.
</description>
</method>
+ <method name="body_get_kinematic_safe_margin" qualifiers="const">
+ <return type="float">
+ </return>
+ <argument index="0" name="body" type="RID">
+ </argument>
+ <description>
+ </description>
+ </method>
<method name="body_get_max_contacts_reported" qualifiers="const">
<return type="int">
</return>
@@ -598,6 +606,16 @@
Sets the function used to calculate physics for an object, if that object allows it (see [method body_set_omit_force integration]).
</description>
</method>
+ <method name="body_set_kinematic_safe_margin">
+ <return type="void">
+ </return>
+ <argument index="0" name="body" type="RID">
+ </argument>
+ <argument index="1" name="margin" type="float">
+ </argument>
+ <description>
+ </description>
+ </method>
<method name="body_set_max_contacts_reported">
<return type="void">
</return>
@@ -1422,7 +1440,9 @@
<constant name="BODY_MODE_RIGID" value="2">
Constant for rigid bodies.
</constant>
- <constant name="BODY_MODE_CHARACTER" value="3">
+ <constant name="BODY_MODE_SOFT" value="3">
+ </constant>
+ <constant name="BODY_MODE_CHARACTER" value="4">
Constant for rigid bodies in character mode. In this mode, a body can not rotate, and only its linear velocity is affected by physics.
</constant>
<constant name="BODY_PARAM_BOUNCE" value="0">