summaryrefslogtreecommitdiffstats
path: root/scene/3d/physics_joint.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-12-08 17:47:12 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-12-08 17:47:12 -0300
commit09ff4571859b012b64876883e186bb7dfaca0c8c (patch)
tree4f804c8036eb89e0c1cf17e9fbce0b6daf968ba7 /scene/3d/physics_joint.h
parentecad3a285feabecf44aeb52c94a0d3552933bba1 (diff)
downloadredot-engine-09ff4571859b012b64876883e186bb7dfaca0c8c.tar.gz
made the exclusion of nodes from joints optional, fixes #3015
Diffstat (limited to 'scene/3d/physics_joint.h')
-rw-r--r--scene/3d/physics_joint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/3d/physics_joint.h b/scene/3d/physics_joint.h
index a5f4ea4bdb..3f5a0e91a6 100644
--- a/scene/3d/physics_joint.h
+++ b/scene/3d/physics_joint.h
@@ -45,6 +45,7 @@ class Joint : public Spatial {
NodePath b;
int solver_priority;
+ bool exclude_from_collision;
protected:
@@ -67,6 +68,9 @@ public:
void set_solver_priority(int p_priority);
int get_solver_priority() const;
+ void set_exclude_nodes_from_collision(bool p_enable);
+ bool get_exclude_nodes_from_collision() const;
+
RID get_joint() const { return joint; }
Joint();