fix: negate AC heading for correct E/W compass orientation

AC's Actions.Heading uses opposite rotation from standard math
angles (confirmed by UtilityBelt's HeadingToQuaternion negation).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erik 2026-04-08 12:14:51 +02:00
parent 502467e075
commit eaa5b5c48d

View file

@ -3726,7 +3726,8 @@ function updateRadarWindow(msg) {
// Always heading-up: player facing direction = up on canvas.
// Compass labels rotate around the edge based on player heading.
const headingRad = playerHeading * Math.PI / 180;
// AC heading convention is opposite from standard math angles — negate
const headingRad = -playerHeading * Math.PI / 180;
const compassLabels = [
{ label: 'N', angle: 0 },
{ label: 'E', angle: Math.PI / 2 },