Add static methods to create RayQueryParameters

This commit is contained in:
kobewi
2022-06-10 23:37:04 +02:00
parent b9375ea7fc
commit 9ada594139
6 changed files with 58 additions and 0 deletions

View File

@ -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; }