From 222713b26fb9d29bd32fb2112d6966f89db0069f Mon Sep 17 00:00:00 2001 From: Wassim SAMAD Date: Thu, 18 Jun 2026 09:13:27 -0400 Subject: [PATCH] fix(editor): point compass needle at true north, not camera MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The compass needle rotation was `-floorplanUserRotationDeg`, but the 2D-floorplan SVG and 3D camera projections both place true north at `+floorplanUserRotationDeg` (= cameraAzimuth − 90°). The negated sign made the needle rotate opposite to north as the camera orbits, so it appeared to track the camera instead of pointing north. The formula was written for the 2D floorplan and reused verbatim when the compass was portaled into the 3D viewer; both instances had the flipped sign. "Align to north" is unaffected (userRotation 0 → up). Co-Authored-By: Claude Opus 4.8 (1M context) --- packages/editor/src/components/editor/floorplan-panel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor/src/components/editor/floorplan-panel.tsx b/packages/editor/src/components/editor/floorplan-panel.tsx index 7a7587495..53a9d5ef1 100644 --- a/packages/editor/src/components/editor/floorplan-panel.tsx +++ b/packages/editor/src/components/editor/floorplan-panel.tsx @@ -10316,14 +10316,14 @@ export function FloorplanPanel({ (compassHost ? ( createPortal( , compassHost, ) ) : ( ))}