Hello !
I can’t get the faster wasm version of ammo.js to work properly.
I have a very basic project that uses node, express and parcel. It works well with the asm.js version of ammo.js.
I have replaced the reference from ammo.js to ammo.wasm.js. Then I’ve put the ammo.wasm.wasm file in the dist directory to make it available to the browser.
I do not think we tried that before. That may be a question for the Ammo folksa ctually. Maybe there is some additional steps to make ammo wasm work like regular ammo
It seems the error is that the browser doesn’t simply want to compile locally the downloaded wasm bytecode, because it needs to trust to received mime type… and in your case, the webserver seems to NOT associate the expected mime type (application/wasm) to the downloaded wasm file.
This has to be changed server side.