# Physics plugin names are different from the name used in babylonFileLoader.ts

**URL:** <https://forum.babylonjs.com/t/physics-plugin-names-are-different-from-the-name-used-in-babylonfileloader-ts/34345>\
**Category:** Bugs\
**Tags:** sceneserializer, physics\
**Created:** [September 29, 2022, 9:00am UTC](https://forum.babylonjs.com/t/physics-plugin-names-are-different-from-the-name-used-in-babylonfileloader-ts/34345 "2022-09-29T09:00:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ultcrt](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ultcrt/32/26169_2.png) [@Ultcrt](https://forum.babylonjs.com/u/Ultcrt)\
**Post date:** [September 29, 2022, 9:00am UTC](https://forum.babylonjs.com/t/physics-plugin-names-are-different-from-the-name-used-in-babylonfileloader-ts/34345/1 "2022-09-29T09:00:37Z")

</div>

Hello,

I think there is a bug in the physics plugin names.

I was trying to serialize a physics enabled scene to a .babylon file, and then load the file to re-display the scene.

But I got an error while loading the .babylon file, it seems that something goes wrong when the loader tries to enable physics engine.

After looking into the serializer and loader, I found out that the physics plugin names are different from the names used in [babylonFileLoader.ts](https://github.com/BabylonJS/Babylon.js/blob/master/packages/dev/core/src/Loading/Plugins/babylonFileLoader.ts#L965).

For example, the AmmoJS plugin name is “AmmoJSPlugin” (defined in [here](https://github.com/BabylonJS/Babylon.js/blob/master/packages/dev/core/src/Physics/Plugins/ammoJSPlugin.ts#L40)), this name is also the one used by SceneSerializer, but in babylonFIleLoader, it uses the name “ammo” to deside which physics engine should be loaded.

I hope I make my point clear enough.

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [September 29, 2022, 12:17pm UTC](https://forum.babylonjs.com/t/physics-plugin-names-are-different-from-the-name-used-in-babylonfileloader-ts/34345/2 "2022-09-29T12:17:19Z")

</div>

cc @Cedric

---

<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:** [September 29, 2022, 1:04pm UTC](https://forum.babylonjs.com/t/physics-plugin-names-are-different-from-the-name-used-in-babylonfileloader-ts/34345/3 "2022-09-29T13:04:33Z")

</div>

Hi @Ultcrt and welcome to the forum

Thank you for reporting the issue. I’ll take a look shortly.

---

<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:** [September 30, 2022, 7:31am UTC](https://forum.babylonjs.com/t/physics-plugin-names-are-different-from-the-name-used-in-babylonfileloader-ts/34345/4 "2022-09-30T07:31:53Z")

</div>

> <https://github.com/BabylonJS/Babylon.js/pull/13043>
>
> Follow up https://forum.babylonjs.com/t/physics-plugin-names-are-different-from-…the-name-used-in-babylonfileloader-ts/34345
> Fix bad plugin name check. Keep previous ones, just in case for back compat.
