summaryrefslogtreecommitdiff
path: root/servers/physics/physics_server_sw.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-04-12 13:17:26 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-04-12 13:17:26 +0200
commite07266f6c1177d963f015fa108af40a315305f89 (patch)
treefa11077b94d83f3ce5d677bce45e96a8195ba2c3 /servers/physics/physics_server_sw.h
parent29ed58eab698334bcfc06c808406c054b06614a3 (diff)
parentf7c3d6329cdc9c21c205f1522813090313a422d2 (diff)
Merge pull request #4273 from bojidar-bg/add-layers-and-masks-to-3d
Port collision and layer masks to 3D
Diffstat (limited to 'servers/physics/physics_server_sw.h')
-rw-r--r--servers/physics/physics_server_sw.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/servers/physics/physics_server_sw.h b/servers/physics/physics_server_sw.h
index 2aadac2216..59eeeb42a7 100644
--- a/servers/physics/physics_server_sw.h
+++ b/servers/physics/physics_server_sw.h
@@ -131,6 +131,9 @@ public:
virtual void area_set_ray_pickable(RID p_area,bool p_enable);
virtual bool area_is_ray_pickable(RID p_area) const;
+ virtual void area_set_collision_mask(RID p_area,uint32_t p_mask);
+ virtual void area_set_layer_mask(RID p_area,uint32_t p_mask);
+
virtual void area_set_monitorable(RID p_area,bool p_monitorable);
virtual void area_set_monitor_callback(RID p_area,Object *p_receiver,const StringName& p_method);
@@ -171,6 +174,9 @@ public:
virtual void body_set_layer_mask(RID p_body, uint32_t p_mask);
virtual uint32_t body_get_layer_mask(RID p_body, uint32_t p_mask) const;
+ virtual void body_set_collision_mask(RID p_body, uint32_t p_mask);
+ virtual uint32_t body_get_collision_mask(RID p_body, uint32_t p_mask) const;
+
virtual void body_set_user_flags(RID p_body, uint32_t p_flags);
virtual uint32_t body_get_user_flags(RID p_body, uint32_t p_flags) const;