├── .github └── workflows │ ├── build.yml │ └── test.yml ├── .gitignore ├── .jshintrc ├── .npmrc ├── AmmoDriver.md ├── CannonDriver.md ├── LICENSE ├── README.md ├── dist ├── aframe-physics-system.js └── aframe-physics-system.min.js ├── docs └── readme.md ├── examples ├── README.md ├── ammo │ ├── compound.html │ ├── constraints.html │ ├── materials.html │ ├── perf.html │ ├── sandbox.html │ ├── spring.html │ ├── stress.html │ ├── sweeper.html │ ├── ttl.html │ └── zero-g.html ├── cannon-worker │ ├── compound.html │ ├── constraints.html │ ├── materials.html │ ├── perf.html │ ├── sandbox.html │ ├── spring.html │ ├── stress.html │ ├── sweeper.html │ └── ttl.html ├── cannon │ ├── compound.html │ ├── constraints.html │ ├── materials.html │ ├── perf.html │ ├── sandbox.html │ ├── spring.html │ ├── stress.html │ ├── sweeper.html │ └── ttl.html ├── components │ ├── force-pushable.js │ ├── grab.js │ ├── pinboard.js │ └── rain-of-entities.js └── styles.css ├── index.js ├── lib └── CANNON-shape2mesh.js ├── package.json ├── patches └── ammo-debug-drawer+0.1.0.patch ├── src ├── components │ ├── ammo-constraint.js │ ├── body │ │ ├── ammo-body.js │ │ ├── body.js │ │ ├── dynamic-body.js │ │ └── static-body.js │ ├── constraint.js │ ├── math │ │ ├── README.md │ │ ├── index.js │ │ └── velocity.js │ ├── shape │ │ ├── ammo-shape.js │ │ └── shape.js │ └── spring.js ├── constants.js ├── drivers │ ├── ammo-driver.js │ ├── driver.js │ ├── event.js │ ├── local-driver.js │ ├── network-driver.js │ ├── webworkify-debug.js │ ├── worker-driver.js │ └── worker.js ├── system.js └── utils │ ├── math.js │ └── protocol.js └── tests ├── .jshintrc ├── __init.test.js ├── helpers.js ├── karma.conf.js ├── live └── issue-47.html ├── math └── velocity.test.js └── physics ├── body.test.js └── system └── physics.test.js /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | **/bundle.js 4 | npm-debug.log 5 | .idea 6 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/.jshintrc -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | c-frame:registry=https://npm.pkg.github.com -------------------------------------------------------------------------------- /AmmoDriver.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/AmmoDriver.md -------------------------------------------------------------------------------- /CannonDriver.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/CannonDriver.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/README.md -------------------------------------------------------------------------------- /dist/aframe-physics-system.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/dist/aframe-physics-system.js -------------------------------------------------------------------------------- /dist/aframe-physics-system.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/dist/aframe-physics-system.min.js -------------------------------------------------------------------------------- /docs/readme.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/ammo/compound.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/ammo/compound.html -------------------------------------------------------------------------------- /examples/ammo/constraints.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/ammo/constraints.html -------------------------------------------------------------------------------- /examples/ammo/materials.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/ammo/materials.html -------------------------------------------------------------------------------- /examples/ammo/perf.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/ammo/perf.html -------------------------------------------------------------------------------- /examples/ammo/sandbox.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/ammo/sandbox.html -------------------------------------------------------------------------------- /examples/ammo/spring.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/ammo/spring.html -------------------------------------------------------------------------------- /examples/ammo/stress.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/ammo/stress.html -------------------------------------------------------------------------------- /examples/ammo/sweeper.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/ammo/sweeper.html -------------------------------------------------------------------------------- /examples/ammo/ttl.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/ammo/ttl.html -------------------------------------------------------------------------------- /examples/ammo/zero-g.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/ammo/zero-g.html -------------------------------------------------------------------------------- /examples/cannon-worker/compound.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon-worker/compound.html -------------------------------------------------------------------------------- /examples/cannon-worker/constraints.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon-worker/constraints.html -------------------------------------------------------------------------------- /examples/cannon-worker/materials.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon-worker/materials.html -------------------------------------------------------------------------------- /examples/cannon-worker/perf.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon-worker/perf.html -------------------------------------------------------------------------------- /examples/cannon-worker/sandbox.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon-worker/sandbox.html -------------------------------------------------------------------------------- /examples/cannon-worker/spring.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon-worker/spring.html -------------------------------------------------------------------------------- /examples/cannon-worker/stress.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon-worker/stress.html -------------------------------------------------------------------------------- /examples/cannon-worker/sweeper.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon-worker/sweeper.html -------------------------------------------------------------------------------- /examples/cannon-worker/ttl.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon-worker/ttl.html -------------------------------------------------------------------------------- /examples/cannon/compound.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon/compound.html -------------------------------------------------------------------------------- /examples/cannon/constraints.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon/constraints.html -------------------------------------------------------------------------------- /examples/cannon/materials.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon/materials.html -------------------------------------------------------------------------------- /examples/cannon/perf.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon/perf.html -------------------------------------------------------------------------------- /examples/cannon/sandbox.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon/sandbox.html -------------------------------------------------------------------------------- /examples/cannon/spring.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon/spring.html -------------------------------------------------------------------------------- /examples/cannon/stress.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon/stress.html -------------------------------------------------------------------------------- /examples/cannon/sweeper.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon/sweeper.html -------------------------------------------------------------------------------- /examples/cannon/ttl.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/cannon/ttl.html -------------------------------------------------------------------------------- /examples/components/force-pushable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/components/force-pushable.js -------------------------------------------------------------------------------- /examples/components/grab.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/components/grab.js -------------------------------------------------------------------------------- /examples/components/pinboard.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/components/pinboard.js -------------------------------------------------------------------------------- /examples/components/rain-of-entities.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/components/rain-of-entities.js -------------------------------------------------------------------------------- /examples/styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/examples/styles.css -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/index.js -------------------------------------------------------------------------------- /lib/CANNON-shape2mesh.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/lib/CANNON-shape2mesh.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/package.json -------------------------------------------------------------------------------- /patches/ammo-debug-drawer+0.1.0.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/patches/ammo-debug-drawer+0.1.0.patch -------------------------------------------------------------------------------- /src/components/ammo-constraint.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/components/ammo-constraint.js -------------------------------------------------------------------------------- /src/components/body/ammo-body.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/components/body/ammo-body.js -------------------------------------------------------------------------------- /src/components/body/body.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/components/body/body.js -------------------------------------------------------------------------------- /src/components/body/dynamic-body.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/components/body/dynamic-body.js -------------------------------------------------------------------------------- /src/components/body/static-body.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/components/body/static-body.js -------------------------------------------------------------------------------- /src/components/constraint.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/components/constraint.js -------------------------------------------------------------------------------- /src/components/math/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/components/math/README.md -------------------------------------------------------------------------------- /src/components/math/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/components/math/index.js -------------------------------------------------------------------------------- /src/components/math/velocity.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/components/math/velocity.js -------------------------------------------------------------------------------- /src/components/shape/ammo-shape.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/components/shape/ammo-shape.js -------------------------------------------------------------------------------- /src/components/shape/shape.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/components/shape/shape.js -------------------------------------------------------------------------------- /src/components/spring.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/components/spring.js -------------------------------------------------------------------------------- /src/constants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/constants.js -------------------------------------------------------------------------------- /src/drivers/ammo-driver.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/drivers/ammo-driver.js -------------------------------------------------------------------------------- /src/drivers/driver.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/drivers/driver.js -------------------------------------------------------------------------------- /src/drivers/event.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/drivers/event.js -------------------------------------------------------------------------------- /src/drivers/local-driver.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/drivers/local-driver.js -------------------------------------------------------------------------------- /src/drivers/network-driver.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/drivers/network-driver.js -------------------------------------------------------------------------------- /src/drivers/webworkify-debug.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/drivers/webworkify-debug.js -------------------------------------------------------------------------------- /src/drivers/worker-driver.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/drivers/worker-driver.js -------------------------------------------------------------------------------- /src/drivers/worker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/drivers/worker.js -------------------------------------------------------------------------------- /src/system.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/system.js -------------------------------------------------------------------------------- /src/utils/math.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/utils/math.js -------------------------------------------------------------------------------- /src/utils/protocol.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/src/utils/protocol.js -------------------------------------------------------------------------------- /tests/.jshintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/tests/.jshintrc -------------------------------------------------------------------------------- /tests/__init.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/tests/__init.test.js -------------------------------------------------------------------------------- /tests/helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/tests/helpers.js -------------------------------------------------------------------------------- /tests/karma.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/tests/karma.conf.js -------------------------------------------------------------------------------- /tests/live/issue-47.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/tests/live/issue-47.html -------------------------------------------------------------------------------- /tests/math/velocity.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/tests/math/velocity.test.js -------------------------------------------------------------------------------- /tests/physics/body.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/tests/physics/body.test.js -------------------------------------------------------------------------------- /tests/physics/system/physics.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c-frame/aframe-physics-system/HEAD/tests/physics/system/physics.test.js --------------------------------------------------------------------------------