diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2023-01-11 10:36:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-11 10:36:53 +0100 |
commit | 9c02bf1b116810b2a95009a8f5b9fcc379e7fa78 (patch) | |
tree | 4ecaee4355ed415490767028f4a84ec087c99d4d /servers/extensions/physics_server_2d_extension.cpp | |
parent | 87efd0b830be95e05f74221a9253aba33550f06c (diff) | |
parent | ba8af83679f4032738b37e5efc6de00f938d0e96 (diff) |
Merge pull request #70707 from mihe/bind-physics-exclude
Bind methods related to physics query exclusions
Diffstat (limited to 'servers/extensions/physics_server_2d_extension.cpp')
-rw-r--r-- | servers/extensions/physics_server_2d_extension.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/servers/extensions/physics_server_2d_extension.cpp b/servers/extensions/physics_server_2d_extension.cpp index a174ceadac..2dbb59a323 100644 --- a/servers/extensions/physics_server_2d_extension.cpp +++ b/servers/extensions/physics_server_2d_extension.cpp @@ -37,6 +37,8 @@ bool PhysicsDirectSpaceState2DExtension::is_body_excluded_from_query(const RID & thread_local const HashSet<RID> *PhysicsDirectSpaceState2DExtension::exclude = nullptr; void PhysicsDirectSpaceState2DExtension::_bind_methods() { + ClassDB::bind_method(D_METHOD("is_body_excluded_from_query", "body"), &PhysicsDirectSpaceState2DExtension::is_body_excluded_from_query); + GDVIRTUAL_BIND(_intersect_ray, "from", "to", "collision_mask", "collide_with_bodies", "collide_with_areas", "hit_from_inside", "result"); GDVIRTUAL_BIND(_intersect_point, "position", "canvas_instance_id", "collision_mask", "collide_with_bodies", "collide_with_areas", "results", "max_results"); GDVIRTUAL_BIND(_intersect_shape, "shape_rid", "transform", "motion", "margin", "collision_mask", "collide_with_bodies", "collide_with_areas", "result", "max_results"); @@ -203,6 +205,9 @@ void PhysicsServer2DExtension::_bind_methods() { /* BODY API */ + ClassDB::bind_method(D_METHOD("body_test_motion_is_excluding_body", "body"), &PhysicsServer2DExtension::body_test_motion_is_excluding_body); + ClassDB::bind_method(D_METHOD("body_test_motion_is_excluding_object", "object"), &PhysicsServer2DExtension::body_test_motion_is_excluding_object); + GDVIRTUAL_BIND(_body_create); GDVIRTUAL_BIND(_body_set_space, "body", "space"); |