⚠ ネタバレ注意: 本サイトはSFアニメ「SOLAR LINE」の内容を詳細に分析しています。未視聴の方はご注意ください。
📝 AI生成コンテンツ: 本考証の大部分は AI(Claude Code 等)によって生成されています。内容の正確性については原作および引用元をご確認ください。

Task 554: Fix moon positions in 3D viewer scenes (TDD)

完了 ← タスク一覧

Task 554: Fix moon positions in 3D viewer scenes (TDD)

Status: DONE

Summary

Fixed Saturn/Enceladus and Uranus/Titania appearing at the same position in 3D viewer.

Both moons had hardcoded x: 0, y: 0, z: 0 (identical to their parent planet).

Root Cause

Fix (data layer, TDD)

  1. Added LOCAL_SCENE_SCALE = 50,000 export (matching renderer's km→scene conversion)
  2. Compute moon position at 45° on orbit: x = (orbitRadius/50000) * cos(π/4), same for y
  3. Enceladus: 238,020 km → ~4.76 scene units from Saturn
  4. Titania: 436,300 km → ~8.73 scene units from Uranus

Tests added (6 new)

Files changed

Impact