"매 enemy facing 의 source-of-truth 는 velocity, not last-input". Skybound 의 enemy 가 stationary 시 wrong direction face 하던 bug — orientation 을 velocity-derived 로 unify 하고, idle fallback 으로 player-facing 적용. 매 2D action game 의 standard fix.
매 핵심
매 문제
Enemy 가 path target 에 도달 후 멈추면 last-known facing 유지.
Player 가 옆에 다가가도 그대로 → unrealistic + hitbox mismatch.
Sprite flip 이 movement input 에만 react.
매 fix axes
Velocity-driven facing: |vx| > epsilon 시 sign(vx) 로 flip.
Idle fallback to player: |v| < eps 일 때 face nearest threat.
Hysteresis: rapid flip 방지 (oscillation guard).
Animation sync: orientation change 시 anim state machine 의 transition.