You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closeserematorg#143 (entity backend only - MPM deferred)
**ARCHITECTURE NOTE**: This is **transitional/deprecated** entity-based physics
for non-continuum objects. LP's primary physics backend will be MPM (Material
Point Method) for all continuum matter. Entity physics limited to observers
(cameras) and non-physical elements.
**SCOPE**: Entity-based work tracking for rigid bodies:
- Forces do work: W = F·dr (using average velocity)
- Work reported via `WorkDoneEvent` → energy ledger
- `EnergyBalance` records transactions with correct direction
**Added:**
- `WorkDoneEvent` message (entity forces → ledger)
- `track_work_from_forces` system (listens to work events)
- Energy transaction recording with proper sign handling
- Integration with symplectic Euler velocity updates
**TODO (MPM Priority):**
- MPM grid-based work tracking (W at particle/grid level)
- MPM work events → same unified energy ledger
- Deprecate entity physics once MPM handles continuum matter
**Performance**: <5% overhead for conservation tracking.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
0 commit comments