n5ro / aframe-physics-system

Physics system for A-Frame VR, built on CANNON.js.
https://n5ro.github.io/aframe-physics-system/
MIT License
505 stars 136 forks source link

Including the Ammo.js build from mixedreality.mozilla.org #207

Open AgathaCrystal opened 1 year ago

AgathaCrystal commented 1 year ago

Hi, it seems like the script tag <script src="https://mixedreality.mozilla.org/ammo.js/builds/ammo.wasm.js"></script> is not working anymore and instead redirects to https://hubs.mozilla.com/labs/.

One of my projects I'm working at is dependent of the Ammo Driver, so would it be possible to update the URL and/or is there different location I can get it from?

Kind regards

kevinsuwito commented 1 year ago

Used the original fork from http://kripken.github.io/ammo.js/builds/ammo.wasm.js but it introduces error like this:

image

It seems there are some differences with the one forked by Mozilla team.

vincentfretin commented 1 year ago

I think you should be able to use https://cdn.jsdelivr.net/gh/MozillaReality/ammo.js@8bbc0ea/builds/ammo.wasm.js also see https://github.com/c-frame/aframe-physics-system/issues/16 for context where this url is coming from.

kevinsuwito commented 1 year ago

I think you should be able to use https://cdn.jsdelivr.net/gh/MozillaReality/ammo.js@8bbc0ea/builds/ammo.wasm.js also see c-frame#16 for context where this url is coming from.

Thank you for pointing out the exact build! Probably need to build and host the files myself in case something happened to the CDN again.

AgathaCrystal commented 1 year ago

Thank you SO much for the fast reply! Its working again :)