Fix: model facing default (south/+Z) + clear game state on rematch

Model facing: GLB models exported from Blender arrive in Godot facing +Z,
not -Z. Changed _facing_to_base_angle default case from 0 (north/-Z) to
PI (south/+Z). Explicit "north" case added. Updated admin dropdown label
from "Default (north)" to "Default (south / Blender GLB)" to match.

Stale game state: when matchmaking.match_found is received, clear Game.state
so the new GameScreen always calls send_ready() rather than rendering the
previous (ended) game's state. Fixes same-players-re-match ending up in
the already-completed session.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-03-16 08:18:28 -04:00
co-authored by Claude Happy
parent 42a2834e03
commit 085249b5c4
3 changed files with 6 additions and 3 deletions
@@ -309,7 +309,7 @@ else
<div class="col">
<label class="form-label form-label-sm mb-0">Facing Direction</label>
<select @bind="asset.ModelFacingDirection" class="form-select form-select-sm">
<option value="">– Default (north) –</option>
<option value="">– Default (south / Blender GLB) –</option>
<option value="north">North (–Z)</option>
<option value="south">South (+Z)</option>
<option value="east">East (+X)</option>