Replies: 1 comment
-
yes of course! you can import it like this: <script type="module">
import * as CANNON from 'https://unpkg.com/[email protected]/dist/cannon-es.js'
// And then just use like this
const world = new CANNON.World();
</script> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been using CannonJS, but recently I have realised that there are some issues and the library has been unmaintained for many years, so I found cannon-es.
It looks good but I need to be able to import it using a script tag, not an NPM install.
In CannonJS you can just import it like this:
Is there a way to import Cannon-Es the same way ?
Beta Was this translation helpful? Give feedback.
All reactions