summaryrefslogtreecommitdiff
path: root/modules/bullet/constraint_bullet.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-02-13 15:26:04 +0100
committerGitHub <noreply@github.com>2018-02-13 15:26:04 +0100
commiteefb58a892dfd5f334cbc86522a1cf0763af77d3 (patch)
tree26451b667bdfe48006d98e1502a11738875c63b0 /modules/bullet/constraint_bullet.h
parentfd871b4d4f0b4441681a3f0c351058be5834b9dc (diff)
parenta42765dadad77d4f4893d9ccf73b7cfefc1643bd (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 'modules/bullet/constraint_bullet.h')
-rw-r--r--modules/bullet/constraint_bullet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/bullet/constraint_bullet.h b/modules/bullet/constraint_bullet.h
index 23be5a5063..ed3a318cbc 100644
--- a/modules/bullet/constraint_bullet.h
+++ b/modules/bullet/constraint_bullet.h
@@ -49,6 +49,7 @@ class ConstraintBullet : public RIDBullet {
protected:
SpaceBullet *space;
btTypedConstraint *constraint;
+ bool disabled_collisions_between_bodies;
public:
ConstraintBullet();
@@ -57,6 +58,9 @@ public:
virtual void set_space(SpaceBullet *p_space);
virtual void destroy_internal_constraint();
+ void disable_collisions_between_bodies(const bool p_disabled);
+ _FORCE_INLINE_ bool is_disabled_collisions_between_bodies() const { return disabled_collisions_between_bodies; }
+
public:
virtual ~ConstraintBullet() {
bulletdelete(constraint);