space-game/public
Michael Mainguy 03f170e150
Some checks failed
Build / build (push) Failing after 18s
Create mesh-based physics for ship and optimize planet geometry
- Update Ship class to use CONVEX_HULL physics from ship1.glb
  - Find geometry mesh from loaded GLB and create physics from it
  - Move physics creation to initialize() after mesh loads
  - Add fallback to BOX shape if mesh not found

- Fix ship position setter for async initialization
  - Add null check for physics body
  - Set transform position directly if body doesn't exist yet
  - Prevents crash when position set before mesh loads

- Optimize planet vertex count for performance
  - Reduce sphere segments from 32 to 12
  - ~144 vertices vs ~1024 vertices per planet
  - Planets are background objects, lower poly acceptable

- Update ship1.glb model

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 08:22:21 -05:00
..
planetTextures Optimize WebXR performance and add procedural planet generation 2025-10-28 11:50:18 -05:00
systems Add JSON-based level editor with localStorage persistence 2025-10-29 08:24:55 -05:00
8192.webp Initial Commit 2025-02-15 11:19:24 -06:00
arrow.stl Initial Commit 2025-02-15 11:19:24 -06:00
asteroid2.glb changed game dynamics. 2025-10-13 17:16:50 -05:00
asteroid.glb Initial Commit 2025-02-15 11:19:24 -06:00
background.mp3 Initial Commit 2025-02-15 11:19:24 -06:00
cockpit2.glb Initial Commit 2025-02-15 11:19:24 -06:00
cockpit3.glb Initial Commit 2025-02-15 11:19:24 -06:00
cockpit4.glb changed game dynamics. 2025-10-13 17:16:50 -05:00
cockpit.glb Initial Commit 2025-02-15 11:19:24 -06:00
flare.png Initial Commit 2025-02-15 11:19:24 -06:00
ship1.blend Add procedural lightmap system for planets and asteroids 2025-10-29 17:30:02 -05:00
ship1.glb Create mesh-based physics for ship and optimize planet geometry 2025-10-30 08:22:21 -05:00
ship1.stl Initial Commit 2025-02-15 11:19:24 -06:00
shot2.mp3 Started cleaning up audio, rendering artifacts. 2025-02-16 16:44:18 -06:00
shot.mp3 Started cleaning up audio, rendering artifacts. 2025-02-16 16:44:18 -06:00
song1.mp3 Migrate to AudioEngineV2 and fix Meta Quest 2 controller detection 2025-10-17 13:59:48 -05:00
styles.css Add JSON-based level editor with localStorage persistence 2025-10-29 08:24:55 -05:00
thrust2.mp3 Initial Commit 2025-02-15 11:19:24 -06:00
thrust3.mp3 Started cleaning up audio, rendering artifacts. 2025-02-16 16:44:18 -06:00
thrust4.mp3 Started cleaning up audio, rendering artifacts. 2025-02-16 16:44:18 -06:00
thrust5.mp3 Started cleaning up audio, rendering artifacts. 2025-02-16 16:44:18 -06:00
thrust.mp3 Initial Commit 2025-02-15 11:19:24 -06:00
thust2.mp3 Initial Commit 2025-02-15 11:19:24 -06:00
yehrat.mp3 Initial Commit 2025-02-15 11:19:24 -06:00