# Imported object as Physics SphereImpostor

**URL:** <https://forum.babylonjs.com/t/imported-object-as-physics-sphereimpostor/12106>\
**Category:** Questions\
**Created:** [June 30, 2020, 5:29pm UTC](https://forum.babylonjs.com/t/imported-object-as-physics-sphereimpostor/12106 "2020-06-30T17:29:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johny\_Mickey](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johny_mickey/32/24948_2.png) [@Johny\_Mickey](https://forum.babylonjs.com/u/Johny_Mickey)\
**Post date:** [June 30, 2020, 5:29pm UTC](https://forum.babylonjs.com/t/imported-object-as-physics-sphereimpostor/12106/1 "2020-06-30T17:29:23Z")

</div>

Hello, when I import my own 3D sphere object and try to apply Physics SphereImpostor, the simulation does not work. But when I use balls created directly in Babylon.js, as in the examples on the playground - it works. Where can the problem be?

Error: “abort(OOM). Build with -s ASSERTIONS=1 for more info.”  
at abort ([https://preview.babylonjs.com/ammo.js:27:256570](https://preview.babylonjs.com/ammo.js:27:256570))  
at abortOnCannotGrowMemory ([https://preview.babylonjs.com/ammo.js:10:51074](https://preview.babylonjs.com/ammo.js:10:51074))  
at \_emscripten\_resize\_heap ([https://preview.babylonjs.com/ammo.js:10:51135](https://preview.babylonjs.com/ammo.js:10:51135))  
at \_o ([https://preview.babylonjs.com/ammo.js:17:175259](https://preview.babylonjs.com/ammo.js:17:175259))  
at Zb ([https://preview.babylonjs.com/ammo.js:18:39562](https://preview.babylonjs.com/ammo.js:18:39562))  
at Tc ([https://preview.babylonjs.com/ammo.js:19:165972](https://preview.babylonjs.com/ammo.js:19:165972))  
at Ue ([https://preview.babylonjs.com/ammo.js:15:28766](https://preview.babylonjs.com/ammo.js:15:28766))  
at Ax ([https://preview.babylonjs.com/ammo.js:21:11561](https://preview.babylonjs.com/ammo.js:21:11561))  
at btBvhTriangleMeshShape ([https://preview.babylonjs.com/ammo.js:27:596936](https://preview.babylonjs.com/ammo.js:27:596936))  
at e.\_createShape ([https://preview.babylonjs.com/babylon.js:16:1932075](https://preview.babylonjs.com/babylon.js:16:1932075))  
at e.generatePhysicsBody ([https://preview.babylonjs.com/babylon.js:16:1921493](https://preview.babylonjs.com/babylon.js:16:1921493))  
at e.addImpostor ([https://preview.babylonjs.com/babylon.js:16:1119048](https://preview.babylonjs.com/babylon.js:16:1119048))  
at e.\_init ([https://preview.babylonjs.com/babylon.js:16:453632](https://preview.babylonjs.com/babylon.js:16:453632))  
at e ([https://preview.babylonjs.com/babylon.js:16:450647](https://preview.babylonjs.com/babylon.js:16:450647))

---

<div class="post-metadata">

**Author:** ![PirateJC](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/piratejc/32/1003_2.png) [@PirateJC](https://forum.babylonjs.com/u/PirateJC)\
**Post date:** [June 30, 2020, 6:32pm UTC](https://forum.babylonjs.com/t/imported-object-as-physics-sphereimpostor/12106/2 "2020-06-30T18:32:14Z")

</div>

Adding @Cedric our Ammo king.

Not sure why exactly that wouldn’t work. Do you have a playground you can point us to to help troubleshoot?

You could also try the mesh imposter and see if that works?

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [July 1, 2020, 7:43am UTC](https://forum.babylonjs.com/t/imported-object-as-physics-sphereimpostor/12106/3 "2020-07-01T07:43:18Z")

</div>

Hi @Johny_Mickey

It looks like Ammojs crashes when building the acceleration structure for a triangle mesh. Are you sure you set the impostor to be a sphere? Also, how many triangles do you have in your sphere?

---

<div class="post-metadata">

**Author:** ![kri100s](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kri100s/32/21430_2.png) [@kri100s](https://forum.babylonjs.com/u/kri100s)\
**Post date:** [August 16, 2021, 8:13pm UTC](https://forum.babylonjs.com/t/imported-object-as-physics-sphereimpostor/12106/4 "2021-08-16T20:13:10Z")

</div>

Hi @Johny_Mickey , I have the same problem. It tried capsule impostor for it and it works like sphere. Way around until the issue is resolved.
