feat(physics): 集成 Rapier2D 物理引擎并修复预览重置问题 (#244)

* feat(physics): 集成 Rapier2D 物理引擎并修复预览重置问题

* fix: 修复 CI 流程并清理代码
This commit is contained in:
YHH
2025-11-28 10:32:28 +08:00
committed by GitHub
parent cabb625a17
commit 673f5e5855
56 changed files with 4934 additions and 218 deletions

View File

@@ -0,0 +1,26 @@
/**
* @esengine/physics-rapier2d
*
* Deterministic 2D physics engine based on Rapier2D with enhanced-determinism support.
* 基于 Rapier2D 的确定性 2D 物理引擎。
*
* 注意:此入口不包含 WASM 依赖,可安全地在编辑器中同步导入。
* 运行时模块(含 WASM请使用 '@esengine/physics-rapier2d/runtime' 导入。
*
* @packageDocumentation
*/
// Types (no WASM dependency)
export * from './types';
// Components (no WASM dependency)
export * from './components';
// Services (no WASM dependency)
export * from './services';
// Systems (type only for editor usage)
export type { Physics2DSystem } from './systems/Physics2DSystem';
// Plugin (for editor, no WASM dependency)
export { Physics2DPlugin } from './editor/Physics2DPlugin';