diff options
author | Ricardo Buring <ricardo.buring@gmail.com> | 2023-04-13 21:45:37 +0200 |
---|---|---|
committer | Ricardo Buring <ricardo.buring@gmail.com> | 2023-04-14 11:40:06 +0200 |
commit | aacb20437a8d796cc58fb7d8a9df4731379cd0c6 (patch) | |
tree | aa891973f8d8dd146ea146a549310c7cd2e48d3f /servers/extensions | |
parent | 220953b6258712dc060bf8ea7592c280ba3ca3ad (diff) | |
download | redot-engine-aacb20437a8d796cc58fb7d8a9df4731379cd0c6.tar.gz |
PhysicsDirectBodyState2D: add get_contact_local_velocity_at_position
Diffstat (limited to 'servers/extensions')
-rw-r--r-- | servers/extensions/physics_server_2d_extension.cpp | 1 | ||||
-rw-r--r-- | servers/extensions/physics_server_2d_extension.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/servers/extensions/physics_server_2d_extension.cpp b/servers/extensions/physics_server_2d_extension.cpp index 2dbb59a323..96f09a8b1c 100644 --- a/servers/extensions/physics_server_2d_extension.cpp +++ b/servers/extensions/physics_server_2d_extension.cpp @@ -97,6 +97,7 @@ void PhysicsDirectBodyState2DExtension::_bind_methods() { GDVIRTUAL_BIND(_get_contact_local_position, "contact_idx"); GDVIRTUAL_BIND(_get_contact_local_normal, "contact_idx"); GDVIRTUAL_BIND(_get_contact_local_shape, "contact_idx"); + GDVIRTUAL_BIND(_get_contact_local_velocity_at_position, "contact_idx"); GDVIRTUAL_BIND(_get_contact_collider, "contact_idx"); GDVIRTUAL_BIND(_get_contact_collider_position, "contact_idx"); GDVIRTUAL_BIND(_get_contact_collider_id, "contact_idx"); diff --git a/servers/extensions/physics_server_2d_extension.h b/servers/extensions/physics_server_2d_extension.h index 0008653f66..253a58d78e 100644 --- a/servers/extensions/physics_server_2d_extension.h +++ b/servers/extensions/physics_server_2d_extension.h @@ -93,6 +93,7 @@ public: EXBIND1RC(Vector2, get_contact_local_position, int) EXBIND1RC(Vector2, get_contact_local_normal, int) + EXBIND1RC(Vector2, get_contact_local_velocity_at_position, int) EXBIND1RC(int, get_contact_local_shape, int) EXBIND1RC(RID, get_contact_collider, int) EXBIND1RC(Vector2, get_contact_collider_position, int) |