diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-12-08 17:47:12 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-12-08 17:47:12 -0300 |
commit | 09ff4571859b012b64876883e186bb7dfaca0c8c (patch) | |
tree | 4f804c8036eb89e0c1cf17e9fbce0b6daf968ba7 /scene/3d/physics_joint.h | |
parent | ecad3a285feabecf44aeb52c94a0d3552933bba1 (diff) | |
download | redot-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.h | 4 |
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(); |