From f7c3d6329cdc9c21c205f1522813090313a422d2 Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Sat, 9 Apr 2016 21:54:09 +0300 Subject: Port collision and layer masks to 3D, fixes #1759 Raycasts now have type_mask and layer_mask. Areas - collision_mask and layer_mask. PhysicsBodies needed only collision_mask. --- servers/physics/physics_server_sw.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'servers/physics/physics_server_sw.h') 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; -- cgit v1.2.3