diff options
author | Lee Pugh <lpugh@protonmail.com> | 2018-01-12 15:27:45 -0600 |
---|---|---|
committer | Lee Pugh <lpugh@protonmail.com> | 2018-01-12 15:27:45 -0600 |
commit | ac26bf0fb45a800168d4571da370e928979dd6e0 (patch) | |
tree | 8ae2cf5f0bb58368b92362e334f7f3cd55658056 /servers/physics | |
parent | 702e28f2657b3b0f50c1e118caf207c0a438f8f1 (diff) |
Expose PhysicsDirectBodyState.get_contact_impulse
Diffstat (limited to 'servers/physics')
-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 e8ea5531e5..ff989ec5bb 100644 --- a/servers/physics/body_sw.h +++ b/servers/physics/body_sw.h @@ -418,6 +418,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; |