This is a forked esm, flatbundled version of https://github.com/schteppe/cannon.js for easier handling in module environments and tree shaking. Visit the original project for documentations and examples.
yarn add cannon-es
import { World } from 'cannon-es'
// ...- Finish TS conversion
- Revisit math/Transform.ts types
- Revisit material/ContactMaterial.ts constructor assertions
- Remove use of defined assertion (!) where possible
- Find and refactor regex:
options:.*Options = \{\} - Correct & standardize JSDoc comments
- Test possible performance improvements by converting matrices to Maps (instead of Arrays)
- Only import types where possible (don't impot unused class as value):
- Upgrade @babel/preset-typescript after March 20th for TypeScript 3.8 support
- Update class imports marked with
// prettier-ignoretoimport type - Remove Prettier ignore comments when TypeScript 3.8 is supported (Prettier 2.0 release+)