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
- Remove all use of
var - Check for any functions missing an explicit return type with regex:
\) \{ - Check for any removed
@todoor@deprecatedJSDoc comments - Convert to abstract classes where possible (Equation, Solver, etc.?)
- Resolve
as anytype assertions where possible - Revisit math/Transform.ts types
- Revisit material/ContactMaterial.ts constructor assertions
- Consider narrowing types in objects/SPHSystem (Body -> Particle)
- Remove use of defined assertion (!) where possible
- Find and refactor regex:
options:.*Options = \{\} - Should
HingeConstraintbe passingcollideConnectedthroughPointToPointConstrainttoConstraint? (used inRigidVehicleline 81) - 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+)