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:
parent
502467e075
commit
eaa5b5c48d
1 changed files with 2 additions and 1 deletions
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue