Files
Project-M/Assets/_Project/Scripts/Client
kronic de81a6f2f3 Fix: StagingAmbiance must never drive a rig-owned camera (zoom/shake regression)
Self-inflicted, found by the operator the moment they pressed Play: "the camera
is so far zoomed in and shaking".

StagingAmbiance rides Env_SeabedKit.prefab, which Game.unity instantiates as
well as ArtStaging — a placement that predates this session and was harmless
while the component only pulsed flora. The camera lissajous drift added in
b407f7cd6 then wrote _cam.position every LateUpdate against
PrototypeCameraRig's follow, pinning the camera to the authored _camBase
(0, 1, -10) while the rig lerped toward its desired (2.50, 16.72, -9.01).

Measured before: camera y oscillating 1.157 <-> 13.559, max 7.43 units per tick.
Measured after:  y settles 16.658..16.709 (target 16.72), span 0.051, max step
0.004 — a ~1800x reduction in per-tick jitter.

Gate on the presence of PrototypeCameraRig, not on a scene name (scene-name
checks are banned by CLAUDE.md). Verified both directions: ArtStaging has no rig
so its drift still runs; Game.unity has one so the drift is correctly inert.

Note for next time: two `refresh_unity scope=scripts` calls reported
compile_requested=false and the editor kept running the STALE assembly, so the
first verification pass showed the guard "not working" when it simply was not
loaded. scope=all mode=force was required. Confirm a behavioural fix by probing
runtime state (_cam == null), not by re-reading the source.

304/304 EditMode green.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-07 15:09:41 -07:00
..
2026-06-04 00:06:18 -07:00
2026-05-31 21:35:12 -07:00
2026-05-31 14:27:52 -07:00
2026-06-04 13:45:46 -07:00
2026-06-02 18:28:23 -07:00
2026-05-31 14:27:52 -07:00
2026-07-02 20:41:43 -07:00
2026-07-02 20:41:43 -07:00