This is a fork of https://github.com/schteppe/cannon.js made by Stefan Hedman @schteppe. It's a type-safe flatbundle (esm and cjs) for easier handling in module environments and tree shaking. Visit the original project for full documentation and examples (1, 2, 3).
yarn add cannon-es
import { World } from 'cannon-es'
// ...TO DO:
- Correct & standardize JSDoc comments
- Fix Octree
as anyassertions, and removeas anytype assertions wherever possible - Remove use of defined assertion (!) where possible (profile performance to ensure no degradation)
- Convert to static methods where possible? (memory savings)
- Convert to abstract classes where possible (Equation, Solver, etc.?)
- Test possible performance improvements by converting arrays and objects to Maps
- V-HACD support (https://github.com/react-spring/use-cannon/issues/35#issuecomment-600188994)
- Explore performance enhancements: