8thwall + Immersal with Physics

Hi everyone! We’re creating an experience using Immersal VPS for large scale buildings and we want to add some physics elements to it. We’re using this module here for AmmoJS:
https://www.8thwall.com/bench/modules/ammojs-module/code/BufferGeometryUtils.js

However, when we add this module, it looks like there’s an error that completely stops the experience from working

So in here it looks like the error is coming from the XRExtras library, but not quite sure where exactly it’s coming from.

Is there anyone who can point me in the right direction here or someone who has ran into this in the past that can give me some pointers?

Much appreciated in advance,
Joao

Are you able to share this project with the support workspace so I can take a look?

Hi @GeorgeButler we just shared the project with you. Please confirm when received if possible :slight_smile:

Thanks

Hey! I was able to fix your project by following the template provided by Immersal and incorporating it into your project. The key changes I made are:

Let me know if you have any other questions!

Hi George! thanks for looking into it, however the issue we were having is still not apparently fixed. What’s breaking it is the integration with AmmoJS. I followed the same git repo into the cloud editor just as you did, but from the moment I import the module and test it, then the experience is broken, as such:


The error is still the same, with either version of ThreeJS. Only reason I changed it was because the AmmoJS module sample had that version built in there.

Is there any chance the you or the team could look into this further please?

Many thanks,

Joao

Hey Joao,

Appreciate the patience here. Have you considered trying a different CDN link such as:

https://www.jsdelivr.com/package/npm/ammo-node ?

Hey @GeorgeButler yes, just tried about 10 different versions/links and none of them are working unfortunately

I’ll take another look to see what the issue could be.