summaryrefslogtreecommitdiff
path: root/servers/physics_server_2d.h
diff options
context:
space:
mode:
authorRicardo Buring <ricardo.buring@gmail.com>2023-03-23 15:59:41 +0100
committerYuri Sizov <yuris@humnom.net>2023-03-27 17:50:35 +0200
commit58d8368481813398aab77717a59461c3b79e3a2d (patch)
treec269ccdb11fc61fb79c81b77fc39cf618632dd5c /servers/physics_server_2d.h
parent2a52307936f11aede9c8968f8c02c8e8f9ee29e1 (diff)
Fix collide_shape return type
Fix PhysicsDirectSpaceState3D::_collide_shape return type. Also PhysicsDirectSpaceState2D::_collide_shape. (cherry picked from commit 61429a5f49f2509f631703886b8b3234701a0206)
Diffstat (limited to 'servers/physics_server_2d.h')
-rw-r--r--servers/physics_server_2d.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics_server_2d.h b/servers/physics_server_2d.h
index 3e254e610e..56ec94ba9f 100644
--- a/servers/physics_server_2d.h
+++ b/servers/physics_server_2d.h
@@ -120,7 +120,7 @@ class PhysicsDirectSpaceState2D : public Object {
TypedArray<Dictionary> _intersect_point(const Ref<PhysicsPointQueryParameters2D> &p_point_query, int p_max_results = 32);
TypedArray<Dictionary> _intersect_shape(const Ref<PhysicsShapeQueryParameters2D> &p_shape_query, int p_max_results = 32);
Vector<real_t> _cast_motion(const Ref<PhysicsShapeQueryParameters2D> &p_shape_query);
- TypedArray<PackedVector2Array> _collide_shape(const Ref<PhysicsShapeQueryParameters2D> &p_shape_query, int p_max_results = 32);
+ TypedArray<Vector2> _collide_shape(const Ref<PhysicsShapeQueryParameters2D> &p_shape_query, int p_max_results = 32);
Dictionary _get_rest_info(const Ref<PhysicsShapeQueryParameters2D> &p_shape_query);
protected: