# 8thwall + Immersal with Physics

**URL:** <https://forum.8thwall.com/t/8thwall-immersal-with-physics/3919>\
**Category:** Technical Support\
**Created:** [December 10, 2024, 10:48am UTC](https://forum.8thwall.com/t/8thwall-immersal-with-physics/3919 "2024-12-10T10:48:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joao\_Pratas](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@Joao\_Pratas](https://forum.8thwall.com/u/Joao_Pratas)\
**Post date:** [December 10, 2024, 10:48am UTC](https://forum.8thwall.com/t/8thwall-immersal-with-physics/3919/1 "2024-12-10T10:48:31Z")

</div>

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](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

 ![Screenshot 2024-12-09 at 16.36.36](https://us1.discourse-cdn.com/flex019/uploads/x8thwall/original/2X/7/7e9f1d5989bf1a068dbd31e8475a5728e267034a.png)

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

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [December 10, 2024, 10:21pm UTC](https://forum.8thwall.com/t/8thwall-immersal-with-physics/3919/2 "2024-12-10T22:21:12Z")

</div>

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

> **[Project Sharing | 8th Wall](https://www.8thwall.com/docs/guides/projects/project-sharing/#share-project-with-another-workspace)**
>
> Project sharing allows members of another trusted workspace to access a specific project in your

---

<div class="post-metadata">

**Author:** ![Joao\_Pratas](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@Joao\_Pratas](https://forum.8thwall.com/u/Joao_Pratas)\
**Post date:** [December 13, 2024, 2:40pm UTC](https://forum.8thwall.com/t/8thwall-immersal-with-physics/3919/3 "2024-12-13T14:40:37Z")

</div>

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

Thanks

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [December 13, 2024, 6:42pm UTC](https://forum.8thwall.com/t/8thwall-immersal-with-physics/3919/4 "2024-12-13T18:42:35Z")

</div>

Hey! I was able to fix your project by following the [template provided by Immersal](https://github.com/immersal/immersal-8thwall/tree/main/cloud-editor-template) and incorporating it into your project. The key changes I made are:

- Updated the Three.js version to v123 in head.html.
- Integrated the [Immersal module code from the Immersal 8th Wall template repository.](https://github.com/immersal/immersal-8thwall/blob/main/cloud-editor-template/immersal-module.js)

Let me know if you have any other questions!

---

<div class="post-metadata">

**Author:** ![Joao\_Pratas](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@Joao\_Pratas](https://forum.8thwall.com/u/Joao_Pratas)\
**Post date:** [December 13, 2024, 7:05pm UTC](https://forum.8thwall.com/t/8thwall-immersal-with-physics/3919/5 "2024-12-13T19:05:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [December 13, 2024, 7:34pm UTC](https://forum.8thwall.com/t/8thwall-immersal-with-physics/3919/6 "2024-12-13T19:34:43Z")

</div>

Hey Joao,

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

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

---

<div class="post-metadata">

**Author:** ![Joao\_Pratas](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@Joao\_Pratas](https://forum.8thwall.com/u/Joao_Pratas)\
**Post date:** [December 14, 2024, 4:05pm UTC](https://forum.8thwall.com/t/8thwall-immersal-with-physics/3919/7 "2024-12-14T16:05:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [December 16, 2024, 5:26pm UTC](https://forum.8thwall.com/t/8thwall-immersal-with-physics/3919/8 "2024-12-16T17:26:18Z")

</div>

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