add get_depth() to KinematicCollision3D as same of 2D

This commit is contained in:
Silc Renew 2022-08-10 10:14:36 +09:00
parent 317ced8204
commit 7331295523
8 changed files with 27 additions and 0 deletions

View file

@ -53,6 +53,12 @@
Returns the colliding body's velocity.
</description>
</method>
<method name="get_depth" qualifiers="const">
<return type="float" />
<description>
Returns the colliding body's length of overlap along the collision normal.
</description>
</method>
<method name="get_local_shape" qualifiers="const">
<return type="Object" />
<description>

View file

@ -66,6 +66,12 @@
Returns the number of detected collisions.
</description>
</method>
<method name="get_depth" qualifiers="const">
<return type="float" />
<description>
Returns the colliding body's length of overlap along the collision normal.
</description>
</method>
<method name="get_local_shape" qualifiers="const">
<return type="Object" />
<param index="0" name="collision_index" type="int" default="0" />