Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

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

arena: lock player facing immediately on right-click

Set playerFacing = cam.rotY when orbit starts (in act) to immediately
lock the player facing direction before any sim/physics updates. This
prevents even a single frame of player rotation during orbit.

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

+2 -1
+2 -1
system/public/aesthetic.computer/disks/arena.mjs
··· 958 958 const cam = system?.fps?.doll?.cam; 959 959 if (e.is("touch") && e.button === 2 && cam) { 960 960 orbiting = true; 961 - baseRotY = cam.rotY; // lock player rotation to current heading 961 + playerFacing = cam.rotY; // lock player facing to current heading immediately 962 + baseRotY = cam.rotY; 962 963 orbitSnapped = false; // start orbiting fresh 963 964 // Capture current XZ distance to maintain constant orbit radius 964 965 const phys = system?.fps?.doll?.physics;