summaryrefslogtreecommitdiffstats
path: root/modules/bullet/bullet_physics_server.h
diff options
context:
space:
mode:
authorAndrea Catania <info@andreacatania.com>2018-02-05 18:20:26 +0100
committerAndrea Catania <info@andreacatania.com>2018-02-05 18:54:07 +0100
commita42765dadad77d4f4893d9ccf73b7cfefc1643bd (patch)
tree614566c3ecf4fa949417e158b82cbc6d97c03dd0 /modules/bullet/bullet_physics_server.h
parentea99b90a77228189d6dc38ab7b7ada967d668ed8 (diff)
downloadredot-engine-a42765dadad77d4f4893d9ccf73b7cfefc1643bd.tar.gz
Added physics API in order to enable/disable collisions between rigidbody attached to a joint with bullet physics bullet
Fixes #16424
Diffstat (limited to 'modules/bullet/bullet_physics_server.h')
-rw-r--r--modules/bullet/bullet_physics_server.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/bullet/bullet_physics_server.h b/modules/bullet/bullet_physics_server.h
index e0e46cd369..764ec2387c 100644
--- a/modules/bullet/bullet_physics_server.h
+++ b/modules/bullet/bullet_physics_server.h
@@ -290,6 +290,9 @@ public:
virtual void joint_set_solver_priority(RID p_joint, int p_priority);
virtual int joint_get_solver_priority(RID p_joint) const;
+ virtual void joint_disable_collisions_between_bodies(RID p_joint, const bool p_disable);
+ virtual bool joint_is_disabled_collisions_between_bodies(RID p_joint) const;
+
virtual RID joint_create_pin(RID p_body_A, const Vector3 &p_local_A, RID p_body_B, const Vector3 &p_local_B);
virtual void pin_joint_set_param(RID p_joint, PinJointParam p_param, float p_value);