From 0ea9c7c4dd29296ae9714e095c7426c385db8979 Mon Sep 17 00:00:00 2001 From: MrCdK Date: Fri, 25 May 2018 20:46:54 +0200 Subject: [PATCH] Expose methods area_set_area_monitor_callback and area_set_monitorable in PhysicsServer and Physics2DServer --- servers/physics_2d_server.cpp | 2 ++ servers/physics_server.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/servers/physics_2d_server.cpp b/servers/physics_2d_server.cpp index fafc239c7f7..cb7669ec242 100644 --- a/servers/physics_2d_server.cpp +++ b/servers/physics_2d_server.cpp @@ -540,6 +540,8 @@ void Physics2DServer::_bind_methods() { ClassDB::bind_method(D_METHOD("area_get_object_instance_id", "area"), &Physics2DServer::area_get_object_instance_id); ClassDB::bind_method(D_METHOD("area_set_monitor_callback", "area", "receiver", "method"), &Physics2DServer::area_set_monitor_callback); + ClassDB::bind_method(D_METHOD("area_set_area_monitor_callback", "area", "receiver", "method"), &Physics2DServer::area_set_area_monitor_callback); + ClassDB::bind_method(D_METHOD("area_set_monitorable", "area", "monitorable"), &Physics2DServer::area_set_monitorable); ClassDB::bind_method(D_METHOD("body_create"), &Physics2DServer::body_create); diff --git a/servers/physics_server.cpp b/servers/physics_server.cpp index 08af26c24bc..82c4eb2e139 100644 --- a/servers/physics_server.cpp +++ b/servers/physics_server.cpp @@ -444,6 +444,8 @@ void PhysicsServer::_bind_methods() { ClassDB::bind_method(D_METHOD("area_get_object_instance_id", "area"), &PhysicsServer::area_get_object_instance_id); ClassDB::bind_method(D_METHOD("area_set_monitor_callback", "area", "receiver", "method"), &PhysicsServer::area_set_monitor_callback); + ClassDB::bind_method(D_METHOD("area_set_area_monitor_callback", "area", "receiver", "method"), &PhysicsServer::area_set_area_monitor_callback); + ClassDB::bind_method(D_METHOD("area_set_monitorable", "area", "monitorable"), &PhysicsServer::area_set_monitorable); ClassDB::bind_method(D_METHOD("area_set_ray_pickable", "area", "enable"), &PhysicsServer::area_set_ray_pickable); ClassDB::bind_method(D_METHOD("area_is_ray_pickable", "area"), &PhysicsServer::area_is_ray_pickable);