-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Examples: Modularize usage of cannon.js. #19686
Conversation
Nice! |
Did you ported it to modules yourself? |
Yep. The last commit of the official repository is more than four years old. Not sure it's still maintained... |
Would it be easy to do a PR with the update to the cannon.js repo? |
there is this Typescript rewrite from cannon and maintained https://github.com/react-spring/cannon-es |
They should rename it to |
I didn't realize they ported it to TS! Nicely it works as a drop-in replacement for cannon.js even in plain-JS projects, thanks @arpu for the patch in A-Frame Physics System (n5ro/aframe-physics-system#147). |
@mrdoob Do you want to use the following file? https://github.com/react-spring/cannon-es/blob/master/dist/cannon-es.js I've checked it locally and it seems to work. |
Hmm, no... I was hoping we could help @schteppe making the library transition to ES modules. |
It seems the build of |
Seems like cannon-es is getting some traction. Should we use that instead? (Sorry for the wasted hours 😔) |
No problem. New PR: #19709 |
More ES6 module usage.