diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2018-02-13 15:26:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-13 15:26:04 +0100 |
| commit | eefb58a892dfd5f334cbc86522a1cf0763af77d3 (patch) | |
| tree | 26451b667bdfe48006d98e1502a11738875c63b0 /servers/physics_2d_server.h | |
| parent | fd871b4d4f0b4441681a3f0c351058be5834b9dc (diff) | |
| parent | a42765dadad77d4f4893d9ccf73b7cfefc1643bd (diff) | |
Merge pull request #16424 from AndreaCatania/phyj
Added physics API in order to enable/disable collisions between rigidbody attached to a joint with bullet physics bullet
Diffstat (limited to 'servers/physics_2d_server.h')
| -rw-r--r-- | servers/physics_2d_server.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/physics_2d_server.h b/servers/physics_2d_server.h index be447ed137..462244c667 100644 --- a/servers/physics_2d_server.h +++ b/servers/physics_2d_server.h @@ -499,6 +499,9 @@ public: virtual void joint_set_param(RID p_joint, JointParam p_param, real_t p_value) = 0; virtual real_t joint_get_param(RID p_joint, JointParam p_param) const = 0; + virtual void joint_disable_collisions_between_bodies(RID p_joint, const bool p_disable) = 0; + virtual bool joint_is_disabled_collisions_between_bodies(RID p_joint) const = 0; + virtual RID pin_joint_create(const Vector2 &p_anchor, RID p_body_a, RID p_body_b = RID()) = 0; virtual RID groove_joint_create(const Vector2 &p_a_groove1, const Vector2 &p_a_groove2, const Vector2 &p_b_anchor, RID p_body_a, RID p_body_b) = 0; virtual RID damped_spring_joint_create(const Vector2 &p_anchor_a, const Vector2 &p_anchor_b, RID p_body_a, RID p_body_b = RID()) = 0; |