diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-09 23:20:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-09 23:20:44 +0200 |
commit | 2de5d2361ac39e61c610d6fc0f161a1237ae2815 (patch) | |
tree | 393cad3673fe40a5291c7c5e458e5935b977d8a5 /doc | |
parent | 7bcfc66fb4253fb121008809e4e81c5b704776b7 (diff) | |
parent | 5650c83e4b7f669066685a9f5526d7ec56e9b43d (diff) |
Merge pull request #51446 from nekomatata/fix-moving-platform-rotation
Fix applied rotation from moving platforms in move_and_slide
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/PhysicsDirectBodyState2D.xml | 7 | ||||
-rw-r--r-- | doc/classes/PhysicsDirectBodyState3D.xml | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/doc/classes/PhysicsDirectBodyState2D.xml b/doc/classes/PhysicsDirectBodyState2D.xml index ab3a04698f..4c6adfca32 100644 --- a/doc/classes/PhysicsDirectBodyState2D.xml +++ b/doc/classes/PhysicsDirectBodyState2D.xml @@ -137,6 +137,13 @@ Returns the current state of the space, useful for queries. </description> </method> + <method name="get_velocity_at_local_position" qualifiers="const"> + <return type="Vector2" /> + <argument index="0" name="local_position" type="Vector2" /> + <description> + Returns the body's velocity at the given relative position, including both translation and rotation. + </description> + </method> <method name="integrate_forces"> <return type="void" /> <description> diff --git a/doc/classes/PhysicsDirectBodyState3D.xml b/doc/classes/PhysicsDirectBodyState3D.xml index 6af62c2bcc..271668e339 100644 --- a/doc/classes/PhysicsDirectBodyState3D.xml +++ b/doc/classes/PhysicsDirectBodyState3D.xml @@ -138,6 +138,13 @@ Returns the current state of the space, useful for queries. </description> </method> + <method name="get_velocity_at_local_position" qualifiers="const"> + <return type="Vector3" /> + <argument index="0" name="local_position" type="Vector3" /> + <description> + Returns the body's velocity at the given relative position, including both translation and rotation. + </description> + </method> <method name="integrate_forces"> <return type="void" /> <description> |