Draw players as facing arrows on the map

The studio map showed players as plain dots. A blue arrow with a white edge and dark outline now points where the player looks, with the name in a pill above, readable on any terrain. Markers carry a yaw (rounded to 5 degrees so head turns do not flood the players event); entities keep their dot.

v3: 3914c4667
This commit is contained in:
piexel committed 2026-11-10 11:26:49 +01:00
1 parent 76dcab175b
commit d28b9d13cc
8 files changed
+174 -25

No files matched your search

@@ -58,7 +58,7 @@ public final class ModdedVisionOverlay implements GuiOverlay {
List<GuiMarker> markers = new ArrayList<>();
for (ServerPlayer player : level.players()) {
Vec3 position = player.position();
markers.add(GuiMarker.player(player.getScoreboardName(), position.x(), position.z()));
markers.add(GuiMarker.player(player.getScoreboardName(), position.x(), position.z(), player.getYRot()));
}
return markers;
}