Skip to content

Commit

Permalink
feat(physics): Refactor physics plugin with extensive enhancements an…
Browse files Browse the repository at this point in the history
…d new features (Orillusion#440)

* feat(physics): Refactor physics plugin with extensive enhancements and new features

* refator: remove _initedFunctions, use wait()

* chore: opt update timeStep

* chore:  use enable to pause/resume onUpdate

* chore: build all packages in CI test

* chore: fix physic build script

* chore: update cloth texture

* chore

---------

Co-authored-by: ShuangLiu <[email protected]>
  • Loading branch information
ID-Emmett and lslzl3000 authored Aug 13, 2024
1 parent 4d6a838 commit 7c18db5
Show file tree
Hide file tree
Showing 38 changed files with 4,597 additions and 639 deletions.
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@
"scripts": {
"dev": "vite",
"build": "tsc --p tsconfig.build.json && vite build && npm run build:types && npm run minify",
"build:test": "tsc --p tsconfig.build.json && vite build",
"build:test": "tsc --p tsconfig.build.json && vite build && npm run build:packages",
"build:packages": "npm run build:physics && npm run build:media && npm run build:stats && npm run build:particle && npm run build:graphic && npm run build:effect",
"build:physics": "cd packages/physics && npm run build",
"build:media": "cd packages/media-extention && npm run build",
"build:stats": "cd packages/stats && npm run build",
"build:particle": "cd packages/particle && npm run build",
"build:graphic": "cd packages/graphic && npm run build",
"build:effect": "cd packages/effect && npm run build",
"build:types": "tsc --emitDeclarationOnly -p tsconfig.build.json && rm -rf dist/packages && mv dist/src dist/types",
"minify": "./node_modules/vite/node_modules/.bin/esbuild dist/orillusion.es.max.js --sourcemap --minify --outfile=dist/orillusion.es.js && ./node_modules/vite/node_modules/.bin/esbuild dist/orillusion.umd.max.js --minify --sourcemap --outfile=dist/orillusion.umd.js",
"test": "electron test/ci/main.js",
Expand Down
15 changes: 15 additions & 0 deletions packages/ammo/ammo.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ammo/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 0 additions & 124 deletions packages/physics/ClothSoftBody.ts

This file was deleted.

69 changes: 0 additions & 69 deletions packages/physics/HingeConstraint.ts

This file was deleted.

Loading

0 comments on commit 7c18db5

Please sign in to comment.