I’m close to giving up, whatever I try, nothing works. I’ve followed every guideline in documentation and scoured forums for any hints of info.
I have what I believe is the simplest possible way to see if Ammo is working:
and get the following result (no, it’s not because I’m missing all the extra BJS boilerplate, this issue was in a more fleshed out document as well, you can confirm this by doing the usual canvas/engine/scene/camera setup and commenting any attempt to access AmmoJS):
I would love to see how anyone else has got AmmoJS running in TypeScript/Webpack because after it WAS working and now isn’t, I’m utterly confused and I believe I’ve done everything suggested in any BJS forum or document.
Alternatively, if anyone would like to look at my barebones project to see what I might be doing wrong, it would be greatly appreciated. I promise it’s a very small project, no bigger than it needs to be in order to replicate the issue I’m getting.
The files I look at to see that I’m following BabylonJS guidelines are:
webpack.config.js(see that I configured ‘
tsconfig.json(see that I am setup to use BabylonJS correctly)
package.json(see my dependencies as well as my ‘.’ command to build via webpack and run http-server)
index.html(see I have a canvas with an ID, and am loading script from the dist folder after building)
src/index.ts(see my barebones attempt at importing Ammo from kripken’s github as directed by BabylonJS docs)
I swear I’m doing everything by the book, and I swear that I’ve changed nothing from what was a working example only a few days ago.
Just for clarity, you can see my project here: https://gitlab.com/animregan/babylon-physics-typescript