From f6f3c13fcd287774a458730722854baab8a17366 Mon Sep 17 00:00:00 2001 From: skal Date: Thu, 5 Feb 2026 16:40:27 +0100 Subject: feat(physics): Implement SDF-based physics engine and BVH Completed Task #49. - Implemented CPU-side SDF library (sphere, box, torus, plane). - Implemented Dynamic BVH construction (rebuilt every frame). - Implemented PhysicsSystem with semi-implicit Euler integration and collision resolution. - Added visual debugging for BVH nodes. - Created test_3d_physics interactive test and test_physics unit tests. - Updated project docs and triaged new tasks. --- GEMINI.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'GEMINI.md') diff --git a/GEMINI.md b/GEMINI.md index ce58ae1..b828621 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -66,17 +66,16 @@ Do not modify files outside the current scope. - - Implemented recursive `#include` resolution in `ShaderComposer` with duplicate prevention. - - Modularized the 3D rendering WGSL codebase into reusable math and render snippets. - - Resolved a critical macOS shader compilation bug by using `str_view()` for composed shader modules. - - Verified the refactor with `test_3d_render` and `ctest` (100% pass rate). - - Fixed `demo64k` runtime crash (g_surface assertion) and validation errors (texture usage, view dimension) on macOS. + - Implemented CPU-side SDF library and BVH construction for physics acceleration. + - Implemented PhysicsSystem with semi-implicit Euler integration and SDF-based collision resolution. + - Integrated physics and BVH visualization into test_3d_render. + - Verified physics stability with new test_physics unit test suite. 1. [DONE] Task #50: WGSL Modularization (Infrastructure and initial refactor). - 2. [NEXT] Task #49: Physics & Collision (CPU SDF Lib, BVH Builder, Euler Solver). <-- CURRENT FOCUS - 3. [TODO] Task #18: 3D System Enhancements (Blender Export, Binary Format). + 2. [DONE] Task #49: Physics & Collision (CPU SDF Lib, BVH Builder, Euler Solver). + 3. [NEXT] Task #18: 3D System Enhancements (Blender Export, Binary Format). <-- CURRENT FOCUS 4. [TODO] Task #36: Blender Exporter (Binary scene export). 5. [TODO] Task #39: Visual Debugging System (BVH and Physics visualization). -- cgit v1.2.3