three-to-cannon

v5.0.2
Convert a THREE.Mesh to a CANNON.Shape.
threejs three cannonjs cannon physics simulation

dist

microbundle --format cjs,esm,modern,umd --no-compress --globals three=THREE --external three

watch

microbundle watch --format cjs,esm,modern,umd --no-compress --globals three=THREE --external three

test

ava --no-worker-threads test/*.test.ts

coverage

c8 --reporter=lcov --reporter=text ava --no-worker-threads test/*.ts --tap

coverage:report

c8 report --reporter=text-lcov > coverage/coverage.lcov

preversion

rimraf dist/* && npm run dist && npm test

postversion

git push && git push --tags && npm publish && yarn coverage:report

lint

eslint src/* test/* --fix
npm i three-to-cannon

Metadata

  • MIT
  • Whatever
  • Don McCurdy
  • released 9/15/2024

Downloads

Maintainers