Skip to content

Commit

Permalink
use Vec2 instead of Vec3
Browse files Browse the repository at this point in the history
  • Loading branch information
thombruce committed Oct 6, 2023
1 parent c1d3444 commit d190d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hud/indicator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d190d27

Please sign in to comment.