summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-04-17 20:14:00 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-04-17 20:14:00 +0200
commit96580689b0d87266bc1b862c10bf7defad535bb3 (patch)
tree0b1758348305dcc7c25d4693f5e1194ceacbe400 /doc
parent96cc100246038f31c439544d8c41db67a5c6d4ce (diff)
parentaacb20437a8d796cc58fb7d8a9df4731379cd0c6 (diff)
downloadredot-engine-96580689b0d87266bc1b862c10bf7defad535bb3.tar.gz
Merge pull request #76051 from rburing/contact_local_velocity_2d
PhysicsDirectBodyState2D: add `get_contact_local_velocity_at_position`
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/PhysicsDirectBodyState2D.xml9
-rw-r--r--doc/classes/PhysicsDirectBodyState2DExtension.xml6
2 files changed, 14 insertions, 1 deletions
diff --git a/doc/classes/PhysicsDirectBodyState2D.xml b/doc/classes/PhysicsDirectBodyState2D.xml
index 0716d71bae..aedd9373b1 100644
--- a/doc/classes/PhysicsDirectBodyState2D.xml
+++ b/doc/classes/PhysicsDirectBodyState2D.xml
@@ -141,7 +141,7 @@
<return type="Vector2" />
<param index="0" name="contact_idx" type="int" />
<description>
- Returns the linear velocity vector at the collider's contact point.
+ Returns the velocity vector at the collider's contact point.
</description>
</method>
<method name="get_contact_count" qualifiers="const">
@@ -179,6 +179,13 @@
Returns the local shape index of the collision.
</description>
</method>
+ <method name="get_contact_local_velocity_at_position" qualifiers="const">
+ <return type="Vector2" />
+ <param index="0" name="contact_idx" type="int" />
+ <description>
+ Returns the velocity vector at the body's contact point.
+ </description>
+ </method>
<method name="get_space_state">
<return type="PhysicsDirectSpaceState2D" />
<description>
diff --git a/doc/classes/PhysicsDirectBodyState2DExtension.xml b/doc/classes/PhysicsDirectBodyState2DExtension.xml
index e94d59480b..b6c0adb91d 100644
--- a/doc/classes/PhysicsDirectBodyState2DExtension.xml
+++ b/doc/classes/PhysicsDirectBodyState2DExtension.xml
@@ -154,6 +154,12 @@
<description>
</description>
</method>
+ <method name="_get_contact_local_velocity_at_position" qualifiers="virtual const">
+ <return type="Vector2" />
+ <param index="0" name="contact_idx" type="int" />
+ <description>
+ </description>
+ </method>
<method name="_get_inverse_inertia" qualifiers="virtual const">
<return type="float" />
<description>