summaryrefslogtreecommitdiffstats
path: root/scene/2d/physics_body_2d.h
diff options
context:
space:
mode:
authorGuilherme Recchi Cardozo <gcardozo@esss.com.br>2018-10-24 16:32:55 -0300
committerGuilherme Recchi Cardozo <gcardozo@inf.ufsm.br>2018-11-01 06:41:34 -0300
commit3fb2069d39b2ccfb30c06cffcf802d73ce169d60 (patch)
treed33d96ede12e8d00fde999ae2979633c0fc55182 /scene/2d/physics_body_2d.h
parentd42fd8fa7936ab0f32e207063908cc41dc1ee7ab (diff)
downloadredot-engine-3fb2069d39b2ccfb30c06cffcf802d73ce169d60.tar.gz
Add method get_collision_exceptions
Adding this method to PhysicsBody, PhysicsBody2D and SoftBody. It returns a list of nodes included in collision exceptions. Fixes #23235, cheers!
Diffstat (limited to 'scene/2d/physics_body_2d.h')
-rw-r--r--scene/2d/physics_body_2d.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/physics_body_2d.h b/scene/2d/physics_body_2d.h
index 29befb0375..ddd55f7b7f 100644
--- a/scene/2d/physics_body_2d.h
+++ b/scene/2d/physics_body_2d.h
@@ -67,6 +67,7 @@ public:
void set_collision_layer_bit(int p_bit, bool p_value);
bool get_collision_layer_bit(int p_bit) const;
+ Array get_collision_exceptions();
void add_collision_exception_with(Node *p_node); //must be physicsbody
void remove_collision_exception_with(Node *p_node);