diff options
author | Silc Renew <tokage.it.lab@gmail.com> | 2022-08-10 10:14:36 +0900 |
---|---|---|
committer | Silc Renew <tokage.it.lab@gmail.com> | 2022-08-10 10:33:58 +0900 |
commit | 733129552384e3047e4e7703974ececa4cd57742 (patch) | |
tree | c431d08db72f7cc37ed9064e2851297b03e9eadd /doc/classes | |
parent | 317ced8204d80367c445963fc989de320c6f9a68 (diff) |
add get_depth() to KinematicCollision3D as same of 2D
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/KinematicCollision2D.xml | 6 | ||||
-rw-r--r-- | doc/classes/KinematicCollision3D.xml | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/doc/classes/KinematicCollision2D.xml b/doc/classes/KinematicCollision2D.xml index ca6aa05316..045480f17c 100644 --- a/doc/classes/KinematicCollision2D.xml +++ b/doc/classes/KinematicCollision2D.xml @@ -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> diff --git a/doc/classes/KinematicCollision3D.xml b/doc/classes/KinematicCollision3D.xml index 08ceebdf91..31fbbc8d0a 100644 --- a/doc/classes/KinematicCollision3D.xml +++ b/doc/classes/KinematicCollision3D.xml @@ -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" /> |