Skip to content

nestarz/cannon-es

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,090 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

// ...

TO DO:

  • 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-ignore to import type
    • Remove Prettier ignore comments when TypeScript 3.8 is supported (Prettier 2.0 release+)

About

💣 A lightweight 3D physics engine written in JavaScript.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 99.7%
  • JavaScript 0.3%