Fix atmosphere particles clustering on left side #3

Merged
tas merged 1 commits from fix/atmosphere-particles-drift into main 2026-03-14 14:18:35 +00:00
Collaborator

Summary

  • Fixes #2: Mars surface atmosphere particles gathering on the left side of the screen
  • When wind is zero or near-zero (mars02, mars03), dust motes were always spawning at the left viewport edge because the code treated wind=0 as "positive wind" and used the left edge as the upwind spawn point
  • Now uses a wind threshold (5 px/s²) to switch between edge-spawning (windy) and full-viewport spawning (calm), with symmetric random drift velocities for even distribution

Test plan

  • Load mars01 (has WIND 25) — particles should still stream from the left edge as before
  • Load mars02 and mars03 (no wind) — particles should now appear evenly across the viewport instead of clustering on the left
## Summary - Fixes #2: Mars surface atmosphere particles gathering on the left side of the screen - When wind is zero or near-zero (mars02, mars03), dust motes were always spawning at the left viewport edge because the code treated wind=0 as "positive wind" and used the left edge as the upwind spawn point - Now uses a wind threshold (5 px/s²) to switch between edge-spawning (windy) and full-viewport spawning (calm), with symmetric random drift velocities for even distribution ## Test plan - [ ] Load mars01 (has WIND 25) — particles should still stream from the left edge as before - [ ] Load mars02 and mars03 (no wind) — particles should now appear evenly across the viewport instead of clustering on the left
LeSerjant added 1 commit 2026-03-14 14:15:11 +00:00
When wind is zero or near-zero, dust particles were always spawning at
the left viewport edge (the "upwind" edge for wind >= 0). Without wind
force to carry them across, they accumulated on the left side. Now
particles spawn across the full viewport when wind is calm (< 5 px/s²),
with random drift directions for even distribution.

Closes #2

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
tas merged commit c57ac68a04 into main 2026-03-14 14:18:35 +00:00
tas deleted branch fix/atmosphere-particles-drift 2026-03-14 14:18:36 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tas/major_tom#3