# BUG Free Camera never stop

**URL:** <https://forum.babylonjs.com/t/bug-free-camera-never-stop/45546>\
**Category:** Bugs\
**Tags:** free-camera\
**Created:** [November 8, 2023, 1:22pm UTC](https://forum.babylonjs.com/t/bug-free-camera-never-stop/45546 "2023-11-08T13:22:03Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bastienk](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@Bastienk](https://forum.babylonjs.com/u/Bastienk)\
**Post date:** [November 8, 2023, 1:22pm UTC](https://forum.babylonjs.com/t/bug-free-camera-never-stop/45546/1 "2023-11-08T13:22:03Z")

</div>

Hi !  
I’m create a first person view camera, but with the last release, the free camera go forward infinite and without vision direction. I create a playground for this.

> **[Babylon.js Playground](https://playground.babylonjs.com/#3PJ1U9)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [November 8, 2023, 1:32pm UTC](https://forum.babylonjs.com/t/bug-free-camera-never-stop/45546/2 "2023-11-08T13:32:13Z")

</div>

That is really strange, but when I switch the Sandbox to 5.71.1 it works as it should to.  
Seems something was broken in the latest update…

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [November 9, 2023, 12:50am UTC](https://forum.babylonjs.com/t/bug-free-camera-never-stop/45546/3 "2023-11-09T00:50:36Z")

</div>

cc @PolygonalSun, maybe it’s related to the latest changes to the inertia computation.

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [November 9, 2023, 8:08am UTC](https://forum.babylonjs.com/t/bug-free-camera-never-stop/45546/4 "2023-11-09T08:08:11Z")

</div>

FYI, I confirm this bug has appeared sometime after yesterday ~11am GMT+1. It appears to be in for both preview and cdn. Hoping for a quick fix. Thx,

EDIT: Dears, Looks to me like the arcRotateCamera panning is also affected after switching camera. I now have very weird (speed up) behavior of the camera panning after switching from the buggy cam.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [November 9, 2023, 10:13am UTC](https://forum.babylonjs.com/t/bug-free-camera-never-stop/45546/5 "2023-11-09T10:13:27Z")

</div>

Assigned @PolygonalSun on November 9, 2023, 10:13am UTC



---

<div class="post-metadata">

**Author:** ![PolygonalSun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/polygonalsun/32/2704_2.png) [@PolygonalSun](https://forum.babylonjs.com/u/PolygonalSun)\
**Post date:** [November 9, 2023, 5:37pm UTC](https://forum.babylonjs.com/t/bug-free-camera-never-stop/45546/6 "2023-11-09T17:37:02Z")

</div>

I’ll take a look and see what’s going on.

---

<div class="post-metadata">

**Author:** ![PolygonalSun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/polygonalsun/32/2704_2.png) [@PolygonalSun](https://forum.babylonjs.com/u/PolygonalSun)\
**Post date:** [November 9, 2023, 8:23pm UTC](https://forum.babylonjs.com/t/bug-free-camera-never-stop/45546/7 "2023-11-09T20:23:39Z")

</div>

Okay, so I’ve got a fix that I’m putting into PR for the gravity stuff. As far as the panning on ArcRotateCamera, that’s my next fix. @mawa, by any chance, do you have a PG handy that shows this?

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [November 10, 2023, 8:36am UTC](https://forum.babylonjs.com/t/bug-free-camera-never-stop/45546/8 "2023-11-10T08:36:31Z")

</div>

No, I don’t. I checked in my scene. It’s a fairly large scene with a skybox at 50000. I’m having panningSensitivity customizable as a user input. The default was 15. Though, since yesterday it looks like this value creates a very sensible panning. It feels like it’s either more sensible/sensitive or it accounts something like mouse acceleration?! It also seems to me that when nothing or little is in the frustrum, the camera becomes even more sensitive, could it be? Then, when I push the value of panningSensitivity to 150 (instead of 15), I feel I’m closer to what I had before.  
I’ve quickly pasted my camera settings in the arcRotateCamera PG from the doc. Not sure if it helps though.

> **[Babylon.js Playground](https://playground.babylonjs.com/#SRZRWV%231832)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

 ![Capture d’écran 2023-11-10 à 09.30.10](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/4/b/4b359ae444e58df374eaaffd09987078e9391941.jpeg)

EDIT: You know what? Do the fix for the above and I will check on this matter of arcRotate panning sensitivity after. Truth is I can’t be 100% sure of everything. It appears that, eventually, when I change the sensitivity settings afterwards, it kind of seems to return to ‘normal’, for whatever reason. So I guess easiest is to make the first fix and next, let me just double-check on this once the fix is done. If that’s ok with you?

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [November 10, 2023, 6:21pm UTC](https://forum.babylonjs.com/t/bug-free-camera-never-stop/45546/9 "2023-11-10T18:21:20Z")

</div>

We reverted the change for now until @PolygonalSun has the full fix

---

<div class="post-metadata">

**Author:** ![PolygonalSun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/polygonalsun/32/2704_2.png) [@PolygonalSun](https://forum.babylonjs.com/u/PolygonalSun)\
**Post date:** [November 10, 2023, 6:22pm UTC](https://forum.babylonjs.com/t/bug-free-camera-never-stop/45546/10 "2023-11-10T18:22:30Z")

</div>

Unassigned @PolygonalSun on November 10, 2023, 6:22pm UTC



---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [November 11, 2023, 8:35am UTC](https://forum.babylonjs.com/t/bug-free-camera-never-stop/45546/11 "2023-11-11T08:35:10Z")

</div>

Thanks, Yes. I confirm it’s back to ‘normal’. With this, I can now also confirm that the arcRotateCamera panning is no longer ‘eratic’. I didn’t change anything from the sensitivity settings (nor any settings) and the panning is back to ‘as expected’ and is definetely different from the behavior I was experiencing with the change. So there must be some sort of relation affecting also this part. Sorry that I cannot be more precise. All I can be positive about is that there is ‘something’… just ‘something’ 🤔
