diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-07-26 15:36:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-26 15:36:37 +0200 |
commit | ef93fec789b20ffb244b23bbfa33a09556d675b0 (patch) | |
tree | 98f5ff7733490369b879bd10cc173511795f62ae /servers/physics/body_sw.h | |
parent | 96d37769d90ed9aa52eb23e7672962049d31dfd8 (diff) | |
parent | ac26bf0fb45a800168d4571da370e928979dd6e0 (diff) |
Merge pull request #15643 from organicpencil/bullet_contact_impulse
Expose PhysicsDirectBodyState.get_contact_impulse
Diffstat (limited to 'servers/physics/body_sw.h')
-rw-r--r-- | servers/physics/body_sw.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/physics/body_sw.h b/servers/physics/body_sw.h index 8f5e6d8251..5df270f679 100644 --- a/servers/physics/body_sw.h +++ b/servers/physics/body_sw.h @@ -442,6 +442,9 @@ public: ERR_FAIL_INDEX_V(p_contact_idx, body->contact_count, Vector3()); return body->contacts[p_contact_idx].local_normal; } + virtual float get_contact_impulse(int p_contact_idx) const { + return 0.0f; // Only implemented for bullet + } virtual int get_contact_local_shape(int p_contact_idx) const { ERR_FAIL_INDEX_V(p_contact_idx, body->contact_count, -1); return body->contacts[p_contact_idx].local_shape; |