diff options
author | kobewi <kobewi4e@gmail.com> | 2022-06-10 23:37:04 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-06-10 23:37:04 +0200 |
commit | 9ada5941397d69954ff8ede8acf315e0c632d412 (patch) | |
tree | 9f988d4d03477e18b67958cc6357ce95ef69634a /servers/physics_server_2d.h | |
parent | b9375ea7fc135f5468dcfb8c80b51a945ac14155 (diff) | |
download | redot-engine-9ada5941397d69954ff8ede8acf315e0c632d412.tar.gz |
Add static methods to create RayQueryParameters
Diffstat (limited to 'servers/physics_server_2d.h')
-rw-r--r-- | servers/physics_server_2d.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/physics_server_2d.h b/servers/physics_server_2d.h index 7a821c64e6..6d95c591c2 100644 --- a/servers/physics_server_2d.h +++ b/servers/physics_server_2d.h @@ -605,6 +605,7 @@ protected: static void _bind_methods(); public: + static Ref<PhysicsRayQueryParameters2D> create(Vector2 p_from, Vector2 p_to, uint32_t p_mask, const Vector<RID> &p_exclude); const PhysicsDirectSpaceState2D::RayParameters &get_parameters() const { return parameters; } void set_from(const Vector2 &p_from) { parameters.from = p_from; } |