diff options
author | Ricardo Buring <ricardo.buring@gmail.com> | 2023-01-10 23:28:02 +0100 |
---|---|---|
committer | Ricardo Buring <ricardo.buring@gmail.com> | 2023-01-10 23:28:02 +0100 |
commit | 3efa10554824d2e3af797061b04e0653cd463292 (patch) | |
tree | da42b7aec8dc1e401d7efa2ce7c4b4093cc086a5 /doc/classes/PhysicsDirectBodyState2D.xml | |
parent | 91713ced81792b10fdc9367b7f355738e5d52777 (diff) |
Add get_contact_impulse method to PhysicsDirectBodyState2D
This makes it consistent with 3D.
Diffstat (limited to 'doc/classes/PhysicsDirectBodyState2D.xml')
-rw-r--r-- | doc/classes/PhysicsDirectBodyState2D.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/PhysicsDirectBodyState2D.xml b/doc/classes/PhysicsDirectBodyState2D.xml index eca6a1cbc7..a46de4c189 100644 --- a/doc/classes/PhysicsDirectBodyState2D.xml +++ b/doc/classes/PhysicsDirectBodyState2D.xml @@ -151,6 +151,13 @@ [b]Note:[/b] By default, this returns 0 unless bodies are configured to monitor contacts. See [member RigidBody2D.contact_monitor]. </description> </method> + <method name="get_contact_impulse" qualifiers="const"> + <return type="Vector2" /> + <param index="0" name="contact_idx" type="int" /> + <description> + Returns the impulse created by the contact. + </description> + </method> <method name="get_contact_local_normal" qualifiers="const"> <return type="Vector2" /> <param index="0" name="contact_idx" type="int" /> |