Commit Graph
15 Commits
Author SHA1 Message Date
西风逍遥游 b6f1b519da Merge remote-tracking branch 'origin/dev' into codex/cloth-obi80
# Conflicts:
#	src/modules/physics/Cloth3D.h
#	src/modules/physics/Physics.cpp
#	src/modules/physics/Physics.h
2026-09-12 00:18:44 +08:00
西风逍遥游 2d54a79649 Merge dev and repair cloth CI 2026-09-11 16:24:36 +08:00
西风逍遥游 569169fc83 feat(physics): add modular volumetric soft bodies 2026-09-11 16:17:20 +08:00
西风逍遥游 3f2f4bab07 feat(physics): add modular rope runtime 2026-09-11 14:20:17 +08:00
西风逍遥游 98d1763cef refactor(physics): extract cloth satellite module 2026-09-11 14:15:29 +08:00
西风逍遥游 30740b69ca feat(physics): bring cloth to Obi core parity 2026-09-11 13:50:40 +08:00
西风逍遥游 d9ff179810 refactor(physics): rename particle fluid to Fluid2D 2026-08-28 09:13:28 +08:00
sunxfancy a74387e3c8 docs(physics): index advanced script bindings 2026-08-25 22:23:21 +08:00
sunxfancy e896a60e2e feat(physics): expand 3D collision and rigid body systems 2026-08-25 22:04:54 +08:00
西风逍遥游 92cd886bd4 fix: CI failures for cloth PR
- examples/softbody3d: pass explicit Box3D shape arguments (script bindings
  do not apply C++ default args) and use math.polarX/polarY instead of
  math.sin/cos (EVEngine's math module shadows the standard table)
- ClothGPU: drop unused local in reset() (MSVC /W4 /WX C4189)
- docs: add missing Cloth/Cloth3D API entries to the physics quick reference
2026-08-23 15:12:19 +08:00
西风逍遥游 188012ee47 feat(physics): 2D/3D cloth with self-collision, fold limits, body collision, and GPU backend
- Cloth3D: meter-space Verlet cloth with triangle-level self-collision, dihedral fold-angle limit, mass-proportional rigid-body collision, double-sided mesh rendering
- Cloth (2D): self-collision, fold-angle limit, mass-proportional body collision, Fluid-style interactAt
- ClothGPU: compute-shader Verlet + distance constraints (double-buffered Jacobi), overflow-free atomicExchange spatial-hash self-collision, Sequence single-submission per frame
- World/World3D point probes for particle-vs-body queries; Body3D::getMass; Squirrel bindings for all new APIs
- examples/softbody3d demo; softbody/softbody_gpu/physics_cloth tests; user/dev docs
2026-08-23 13:54:20 +08:00
西风逍遥游andCursor Agent c26a077cb5 feat(physics): integrate Box3D for 3D rigid-body simulation (#31)
Add Erin Catto's Box3D (v0.1.0) as external/box3d and expose World3D,
Body3D, and Shape3D through Physics.newWorld3D, mirroring the existing
Box2D script API with meter-space coordinates, queries, and contact events.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-08-11 17:01:13 +08:00
西风逍遥游andCursor Agent cbb6f14ac4 feat(physics): interactive cloth and 2D fluid (#25)
* feat(physics): add interactive cloth and 2D fluid solvers

Extend the Physics module with Verlet cloth (pin/grab) and
double-density-relaxation fluid (emit/interact), plus Squirrel
bindings, tests, docs, and an examples/softbody demo.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>

* fix(physics): improve cloth constraint solve and softbody tests

Apply full distance correction when one cloth particle is pinned, and
tighten unit tests around pin hold, free-fall, grab, and fluid behavior.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-08-11 14:49:17 +08:00
西风逍遥游andCursor Agent d603219164 feat: complete 2D/3D pick, overlap, and collision query APIs (#11)
Add Math geometry tests for 2D/3D picking and overlaps, Physics
rayCast/queryAABB/testPoint, and Camera2D/3D screen pick helpers,
with script bindings, docs, and unit tests.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-08-10 07:42:09 +08:00
西风逍遥游 28f778d2c4 docs: review every user module chapter 2026-08-09 21:41:58 +08:00