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 /servers/physics_2d/godot_body_direct_state_2d.h | |
parent | 91713ced81792b10fdc9367b7f355738e5d52777 (diff) |
Add get_contact_impulse method to PhysicsDirectBodyState2D
This makes it consistent with 3D.
Diffstat (limited to 'servers/physics_2d/godot_body_direct_state_2d.h')
-rw-r--r-- | servers/physics_2d/godot_body_direct_state_2d.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics_2d/godot_body_direct_state_2d.h b/servers/physics_2d/godot_body_direct_state_2d.h index c01ee62920..545d52ad23 100644 --- a/servers/physics_2d/godot_body_direct_state_2d.h +++ b/servers/physics_2d/godot_body_direct_state_2d.h @@ -92,8 +92,8 @@ public: virtual Vector2 get_contact_collider_position(int p_contact_idx) const override; virtual ObjectID get_contact_collider_id(int p_contact_idx) const override; virtual int get_contact_collider_shape(int p_contact_idx) const override; - virtual Vector2 get_contact_collider_velocity_at_position(int p_contact_idx) const override; + virtual Vector2 get_contact_impulse(int p_contact_idx) const override; virtual PhysicsDirectSpaceState2D *get_space_state() override; |