From d190d27f5c1201b0127177f037e6af770fe5ecb2 Mon Sep 17 00:00:00 2001 From: Thom Bruce Date: Fri, 6 Oct 2023 05:34:59 +0100 Subject: [PATCH] use Vec2 instead of Vec3 --- src/hud/indicator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hud/indicator.rs b/src/hud/indicator.rs index 3dfd6ae..0b69517 100644 --- a/src/hud/indicator.rs +++ b/src/hud/indicator.rs @@ -96,7 +96,7 @@ fn indicators_system( // get the extents of the bounding UI node (size of window) let bounds = bounds_query.single().size(); - let extents = Vec3::from((bounds / 2.0, 0.0)); + let extents = Vec2::from(bounds / 2.0); // reposition indicator relative to the direction of the entity // we're using the non-normalized real_to_entity for this in order