diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2020-03-26 00:23:34 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2020-06-02 23:18:59 -0400 |
commit | ba27deef06f0152a59c86e3b0ab3ebb0976344ad (patch) | |
tree | 9c5e8fac16de8beb6a657c7a2f5386f3190292f5 /servers/physics_3d/physics_server_3d_sw.h | |
parent | 030a26206ff70b1050c885270afce89b0430af70 (diff) |
Refactor physics force and impulse code
Diffstat (limited to 'servers/physics_3d/physics_server_3d_sw.h')
-rw-r--r-- | servers/physics_3d/physics_server_3d_sw.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/physics_3d/physics_server_3d_sw.h b/servers/physics_3d/physics_server_3d_sw.h index 26230ef674..dccacb063f 100644 --- a/servers/physics_3d/physics_server_3d_sw.h +++ b/servers/physics_3d/physics_server_3d_sw.h @@ -206,11 +206,11 @@ public: virtual Vector3 body_get_applied_torque(RID p_body) const; virtual void body_add_central_force(RID p_body, const Vector3 &p_force); - virtual void body_add_force(RID p_body, const Vector3 &p_force, const Vector3 &p_pos); + virtual void body_add_force(RID p_body, const Vector3 &p_force, const Vector3 &p_position = Vector3()); virtual void body_add_torque(RID p_body, const Vector3 &p_torque); virtual void body_apply_central_impulse(RID p_body, const Vector3 &p_impulse); - virtual void body_apply_impulse(RID p_body, const Vector3 &p_pos, const Vector3 &p_impulse); + virtual void body_apply_impulse(RID p_body, const Vector3 &p_impulse, const Vector3 &p_position = Vector3()); virtual void body_apply_torque_impulse(RID p_body, const Vector3 &p_impulse); virtual void body_set_axis_velocity(RID p_body, const Vector3 &p_axis_velocity); |