Go to file
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
.github/workflows increased heap space. 2025-10-28 12:01:29 -05:00
public Create mesh-based physics for ship and optimize planet geometry 2025-10-30 08:22:21 -05:00
server Initial Commit 2025-02-15 11:19:24 -06:00
src Create mesh-based physics for ship and optimize planet geometry 2025-10-30 08:22:21 -05:00
.gitignore Initial Commit 2025-02-15 11:19:24 -06:00
CLAUDE.md Add JSON-based level editor with localStorage persistence 2025-10-29 08:24:55 -05:00
index.html Add JSON-based level editor with localStorage persistence 2025-10-29 08:24:55 -05:00
package-lock.json Optimize WebXR performance and add procedural planet generation 2025-10-28 11:50:18 -05:00
package.json Add difficulty levels and upgrade BabylonJS 2025-10-17 09:05:18 -05:00
styles.css Add difficulty levels and upgrade BabylonJS 2025-10-17 09:05:18 -05:00
tsconfig.json Initial Commit 2025-02-15 11:19:24 -06:00
vite.config.ts Add difficulty levels and upgrade BabylonJS 2025-10-17 09:05:18 -05:00