Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

arena: fix orbit distance drift

Track appliedOrbitOffset as the total change (newX - cam.x) rather than
relative to the existing offset. This keeps the camera distance constant
as it swivels around to the front for true freelook.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+3 -3
+3 -3
system/public/aesthetic.computer/disks/arena.mjs
··· 698 698 const newAngle = baseAngle + orbitRad; 699 699 const newX = pCamX + dist * Math.sin(newAngle); 700 700 const newZ = pCamZ + dist * Math.cos(newAngle); 701 - // Track what we're adding so we can undo it next frame 702 - appliedOrbitOffset[0] = newX - pCamX - dx; 703 - appliedOrbitOffset[1] = newZ - pCamZ - dz; 701 + // Track the total change we're making so we can undo it next frame 702 + appliedOrbitOffset[0] = newX - cam.x; 703 + appliedOrbitOffset[1] = newZ - cam.z; 704 704 cam.x = newX; 705 705 cam.z = newZ; 706 706 }