summaryrefslogtreecommitdiff
path: root/servers/physics_server_3d.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-25 17:08:55 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-25 17:08:55 +0200
commitef266183598401d89482c5d2035d7e4cd3f64cb9 (patch)
tree6f5e436482cd0ed33415f1799945ae84a20b52ac /servers/physics_server_3d.h
parentd456dce8af77572ec5c9bec87cf1477fa52ea318 (diff)
parentefd4dc20a3e88cfb90acc2bbb27f941872fbcc72 (diff)
Merge pull request #66290 from 4d49/physics2d-area-methods
add `area_get_collision_layer` &`area_get_collision_mask`
Diffstat (limited to 'servers/physics_server_3d.h')
-rw-r--r--servers/physics_server_3d.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/servers/physics_server_3d.h b/servers/physics_server_3d.h
index 2151d84e40..b21c4e9249 100644
--- a/servers/physics_server_3d.h
+++ b/servers/physics_server_3d.h
@@ -364,8 +364,11 @@ public:
virtual Variant area_get_param(RID p_parea, AreaParameter p_param) const = 0;
virtual Transform3D area_get_transform(RID p_area) const = 0;
- virtual void area_set_collision_mask(RID p_area, uint32_t p_mask) = 0;
virtual void area_set_collision_layer(RID p_area, uint32_t p_layer) = 0;
+ virtual uint32_t area_get_collision_layer(RID p_area) const = 0;
+
+ virtual void area_set_collision_mask(RID p_area, uint32_t p_mask) = 0;
+ virtual uint32_t area_get_collision_mask(RID p_area) const = 0;
virtual void area_set_monitorable(RID p_area, bool p_monitorable) = 0;