diff options
author | Mansur Isaev <737dab2f169a@mail.ru> | 2022-09-23 10:06:29 +0400 |
---|---|---|
committer | Mansur Isaev <737dab2f169a@mail.ru> | 2022-09-25 14:34:35 +0400 |
commit | efd4dc20a3e88cfb90acc2bbb27f941872fbcc72 (patch) | |
tree | b6d970d756b188e3fd98e6cae275d656bde5faed /servers/physics_server_2d.cpp | |
parent | 15ac442247b2b45ae0e2900d18f26e5b82e6c011 (diff) | |
download | redot-engine-efd4dc20a3e88cfb90acc2bbb27f941872fbcc72.tar.gz |
Add `area_get_collision_layer` and `area_get_collision_mask`
Diffstat (limited to 'servers/physics_server_2d.cpp')
-rw-r--r-- | servers/physics_server_2d.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/physics_server_2d.cpp b/servers/physics_server_2d.cpp index abaa473017..21be311637 100644 --- a/servers/physics_server_2d.cpp +++ b/servers/physics_server_2d.cpp @@ -652,7 +652,10 @@ void PhysicsServer2D::_bind_methods() { ClassDB::bind_method(D_METHOD("area_clear_shapes", "area"), &PhysicsServer2D::area_clear_shapes); ClassDB::bind_method(D_METHOD("area_set_collision_layer", "area", "layer"), &PhysicsServer2D::area_set_collision_layer); + ClassDB::bind_method(D_METHOD("area_get_collision_layer", "area"), &PhysicsServer2D::area_get_collision_layer); + ClassDB::bind_method(D_METHOD("area_set_collision_mask", "area", "mask"), &PhysicsServer2D::area_set_collision_mask); + ClassDB::bind_method(D_METHOD("area_get_collision_mask", "area"), &PhysicsServer2D::area_get_collision_mask); ClassDB::bind_method(D_METHOD("area_set_param", "area", "param", "value"), &PhysicsServer2D::area_set_param); ClassDB::bind_method(D_METHOD("area_set_transform", "area", "transform"), &PhysicsServer2D::area_set_transform); |