# \#ammojs

**URL:** https://discourse.threejs.org/tag/ammojs/1012.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [Ammo.js: Help with setup/import errors](https://discourse.threejs.org/t/ammo-js-help-with-setup-import-errors/66642)

<div class="topic-metadata">

**Author:** [@ecberger](https://discourse.threejs.org/u/ecberger)\
**Replies:** 7\
**Last updated:** [March 29, 2025, 2:13am UTC](https://discourse.threejs.org/t/ammo-js-help-with-setup-import-errors/66642 "2025-03-29T02:13:47Z")

</div>

Hi there. I am trying to use three.js to write a program in which I can import a model file (likely .obj), turn it into a cloth/softbody and interact with it using my mouse (for example to pull at the cloth). I have us…

---

## [Joining two Soft Bodies (Cloths)](https://discourse.threejs.org/t/joining-two-soft-bodies-cloths/59823)

<div class="topic-metadata">

**Author:** [@pmg](https://discourse.threejs.org/u/pmg)\
**Replies:** 2\
**Last updated:** [February 3, 2025, 2:29am UTC](https://discourse.threejs.org/t/joining-two-soft-bodies-cloths/59823 "2025-02-03T02:29:30Z")

</div>

I want to join (stitch) two cloth pieces together. I am using ammo.js for soft-body physics. According to the bullet physics documentation, there is a function on the soft body named appendLink() by which the two soft b…

---

## [Making btSequential ImpulseConstraint Solver deterministic in Ammo.js](https://discourse.threejs.org/t/making-btsequential-impulseconstraint-solver-deterministic-in-ammo-js/74198)

<div class="topic-metadata">

**Author:** [@Robert\_Wegner](https://discourse.threejs.org/u/Robert_Wegner)\
**Replies:** 0\
**Last updated:** [November 20, 2024, 1:27am UTC](https://discourse.threejs.org/t/making-btsequential-impulseconstraint-solver-deterministic-in-ammo-js/74198 "2024-11-20T01:27:13Z")

</div>

Hello, I read in a pdf by Shahin Rabbani that in order to make everything in Ammo.js deterministic, in particular I should “make sure the following flags in btSolverMode in btContactSolverInfo.h are cleared: a. SOLVER\_…

---

## [Ammo Physics ( joint angle and size control ) how](https://discourse.threejs.org/t/ammo-physics-joint-angle-and-size-control-how/63121)

<div class="topic-metadata">

**Author:** [@didi\_softwares](https://discourse.threejs.org/u/didi_softwares)\
**Replies:** 2\
**Last updated:** [March 22, 2024, 10:32pm UTC](https://discourse.threejs.org/t/ammo-physics-joint-angle-and-size-control-how/63121 "2024-03-22T22:32:22Z")

</div>

https://didisoftwares.ddns.net/ Hi, I’m trying to simulate physics on an excavator. Does anyone know how to control the following situations: 1 - how much the slider (btSliderConstraint) can push and pull, even by …

---

## [Glb model sliding after animation](https://discourse.threejs.org/t/glb-model-sliding-after-animation/60784)

<div class="topic-metadata">

**Author:** [@ubibakarsoft](https://discourse.threejs.org/u/ubibakarsoft)\
**Replies:** 2\
**Last updated:** [January 29, 2024, 2:09am UTC](https://discourse.threejs.org/t/glb-model-sliding-after-animation/60784 "2024-01-29T02:09:32Z")

</div>

My animation is fbx and the model (character) is glb. I do the code something like: mixer = new THREE.AnimationMixer( gltf.scene ); mixer.clipAction( fbx.animations\[ 0 \] ).play(); // idle Seems the fbx animation skele…

---

## [Threejs Ammojs Collision Detection Not Working](https://discourse.threejs.org/t/threejs-ammojs-collision-detection-not-working/53594)

<div class="topic-metadata">

**Author:** [@Ali\_Osture](https://discourse.threejs.org/u/Ali_Osture)\
**Replies:** 0\
**Last updated:** [July 6, 2023, 5:05pm UTC](https://discourse.threejs.org/t/threejs-ammojs-collision-detection-not-working/53594 "2023-07-06T17:05:05Z")

</div>

Hi all I am facing a challenge with implementing collision detection between a first-person camera character and a glTF model. I think problem is const numManifolds = dispatcher.getNumManifolds(); numManifolds will r…

---

## [Threejs Ammojs First Person Camera Collision Not Working with GLTF](https://discourse.threejs.org/t/threejs-ammojs-first-person-camera-collision-not-working-with-gltf/53506)

<div class="topic-metadata">

**Author:** [@Ali\_Osture](https://discourse.threejs.org/u/Ali_Osture)\
**Replies:** 1\
**Last updated:** [July 4, 2023, 6:35pm UTC](https://discourse.threejs.org/t/threejs-ammojs-first-person-camera-collision-not-working-with-gltf/53506 "2023-07-04T18:35:27Z")

</div>

Hi everyone, Can someone help me where is the problem in my code? My GLTF model consists of walls, floor and ceiling function initAmmoJsKinematicCharacterController(pos, quat, userData) { const radius = 1; con…

---

## [Collision stops working after softbody deformation](https://discourse.threejs.org/t/collision-stops-working-after-softbody-deformation/50756)

<div class="topic-metadata">

**Author:** [@whatisor](https://discourse.threejs.org/u/whatisor)\
**Replies:** 1\
**Last updated:** [April 25, 2023, 1:38am UTC](https://discourse.threejs.org/t/collision-stops-working-after-softbody-deformation/50756 "2023-04-25T01:38:09Z")

</div>

I have a soft body that is anchored to a rigid body A, and it collides well with other rigid bodies. However, when I use the mouse to modify the position of rigid body A and deform the soft body, the deformed part of the…

---

## [How to convert ammo.js to es6 module?](https://discourse.threejs.org/t/how-to-convert-ammo-js-to-es6-module/30633)

<div class="topic-metadata">

**Author:** [@gonnavis](https://discourse.threejs.org/u/gonnavis)\
**Replies:** 12\
**Last updated:** [January 16, 2023, 8:12pm UTC](https://discourse.threejs.org/t/how-to-convert-ammo-js-to-es6-module/30633 "2023-01-16T20:12:08Z")

</div>

I’m facing a situation that can only import es6 module, can not use \<script\> tag. How to convert ammo.js to es6 module? If can’t convert, is there a way to wrap it in an es6 loader, and load it like what DRACOLoader lo…

---

## [Does anybody use ammo.js to animate wiggle bones?](https://discourse.threejs.org/t/does-anybody-use-ammo-js-to-animate-wiggle-bones/46841)

<div class="topic-metadata">

**Author:** [@sdarpeng](https://discourse.threejs.org/u/sdarpeng)\
**Replies:** 0\
**Last updated:** [January 13, 2023, 10:56am UTC](https://discourse.threejs.org/t/does-anybody-use-ammo-js-to-animate-wiggle-bones/46841 "2023-01-13T10:56:57Z")

</div>

I even tried cloth simulation directly but the fps is too slow.

---

## [Ammo.js as ES6-module. Uncaught TypeError: ia\[J\[((J\[(a \>\> 2)\] + 8) \>\> 2)\]\] is not a function](https://discourse.threejs.org/t/ammo-js-as-es6-module-uncaught-typeerror-ia-j-j-a-2-8-2-is-not-a-function/39073)

<div class="topic-metadata">

**Author:** [@8Observer8](https://discourse.threejs.org/u/8Observer8)\
**Replies:** 1\
**Last updated:** [October 13, 2022, 10:14pm UTC](https://discourse.threejs.org/t/ammo-js-as-es6-module-uncaught-typeerror-ia-j-j-a-2-8-2-is-not-a-function/39073 "2022-10-13T22:14:23Z")

</div>

Hello, I converted Ammo.js to ES6 module like in this message: How to convert ammo.js to es6 module? - #4 by gonnavis I got this simple Three.js + Ammo.js example Plunker - Three.js + Ammo.js. Falling Box from the tuto…

---

## [When the clone model is introduced and added to the AMMO world, the position parameter becomes NaN](https://discourse.threejs.org/t/when-the-clone-model-is-introduced-and-added-to-the-ammo-world-the-position-parameter-becomes-nan/41508)

<div class="topic-metadata">

**Author:** [@doumuer](https://discourse.threejs.org/u/doumuer)\
**Replies:** 0\
**Last updated:** [August 17, 2022, 4:23am UTC](https://discourse.threejs.org/t/when-the-clone-model-is-introduced-and-added-to-the-ammo-world-the-position-parameter-becomes-nan/41508 "2022-08-17T04:23:36Z")

</div>

Hello, I have one problem when building a multiplayer online game using three.js+ AMmo.js. The problem is as follows. When the second player joining the game, the actual position of the model is changed to NaN duiring t…

---

## [Having to Pass Ammo as an arguament to function](https://discourse.threejs.org/t/having-to-pass-ammo-as-an-arguament-to-function/39202)

<div class="topic-metadata">

**Author:** [@BatterySmooth](https://discourse.threejs.org/u/BatterySmooth)\
**Replies:** 0\
**Last updated:** [June 12, 2022, 9:07pm UTC](https://discourse.threejs.org/t/having-to-pass-ammo-as-an-arguament-to-function/39202 "2022-06-12T21:07:45Z")

</div>

I’m introducing myself to Three.js and Ammo.js and I’m having some issues writing functions. So, I’m sure I’m doing something novice here, but I’m at a bit of a loss. When I’m calling Ammo constructors within functions…

---

## [Physics - CCD Motion Clamping pinball with enable3d (three+ammo) - now a progressive web app!](https://discourse.threejs.org/t/physics-ccd-motion-clamping-pinball-with-enable3d-three-ammo-now-a-progressive-web-app/35149)

<div class="topic-metadata">

**Author:** [@scenaristeur](https://discourse.threejs.org/u/scenaristeur)\
**Replies:** 8\
**Last updated:** [March 2, 2022, 11:44pm UTC](https://discourse.threejs.org/t/physics-ccd-motion-clamping-pinball-with-enable3d-three-ammo-now-a-progressive-web-app/35149 "2022-03-02T23:44:04Z")

</div>

Hello, I’m using enable3d (threejs +ammo.js) New Physics Plugin for three.js (using ammo.js) from @yannick to build a pinball but i’m facing a little issue. As you can see in the video, the ball sometimes pass through t…

---

## [GLTF collision is having weird problem (video included)](https://discourse.threejs.org/t/gltf-collision-is-having-weird-problem-video-included/36385)

<div class="topic-metadata">

**Author:** [@dhruval](https://discourse.threejs.org/u/dhruval)\
**Replies:** 1\
**Last updated:** [April 10, 2022, 4:22pm UTC](https://discourse.threejs.org/t/gltf-collision-is-having-weird-problem-video-included/36385 "2022-04-10T16:22:07Z")

</div>

I’m getting this weird gltf convex shape collision, where model is reacting to floor goes inside of the floor, probably some mistake in calculating vertices or something? can anyone tell me where am I doing wrong, please…

---

## [How to add ammo.js physic to gltf file?](https://discourse.threejs.org/t/how-to-add-ammo-js-physic-to-gltf-file/27539)

<div class="topic-metadata">

**Author:** [@neciszhang](https://discourse.threejs.org/u/neciszhang)\
**Replies:** 10\
**Last updated:** [March 30, 2022, 2:59pm UTC](https://discourse.threejs.org/t/how-to-add-ammo-js-physic-to-gltf-file/27539 "2022-03-30T14:59:59Z")

</div>

hello, i want to add physic to the claw gltf file. gltf link: \[https://three.tzjjtech.cn/house2/model/claw.glb\](https://claw gltf) I want to add it to physic, i don’t want to set it Box/Spere physic Mesh.I want to set…

---

## [How does the character model in the FBXLoader use cloth mode](https://discourse.threejs.org/t/how-does-the-character-model-in-the-fbxloader-use-cloth-mode/28133)

<div class="topic-metadata">

**Author:** [@Gonaldo7](https://discourse.threejs.org/u/Gonaldo7)\
**Replies:** 0\
**Last updated:** [July 19, 2021, 2:17am UTC](https://discourse.threejs.org/t/how-does-the-character-model-in-the-fbxloader-use-cloth-mode/28133 "2021-07-19T02:17:54Z")

</div>

I looked at the code in the ammo\_cloth example of three.js, but I can’t do anything about it

---

## [Ammo.btVector3 is not a constructor](https://discourse.threejs.org/t/ammo-btvector3-is-not-a-constructor/26088)

<div class="topic-metadata">

**Author:** [@Hyem](https://discourse.threejs.org/u/Hyem)\
**Replies:** 1\
**Last updated:** [May 9, 2021, 9:29pm UTC](https://discourse.threejs.org/t/ammo-btvector3-is-not-a-constructor/26088 "2021-05-09T21:29:44Z")

</div>

Hello :slight\_smile: I’m so a noob on web and I was trying to import ammo.js into my project with Three.js editor. I got this message Uncaught TypeError: Ammo.btVector3 is not a constructor and so I googled it up an…
