# Camera slowdown?

**URL:** <https://forum.babylonjs.com/t/camera-slowdown/6191>\
**Category:** Questions\
**Created:** [October 8, 2019, 2:32pm UTC](https://forum.babylonjs.com/t/camera-slowdown/6191 "2019-10-08T14:32:57Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keeger](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@Keeger](https://forum.babylonjs.com/u/Keeger)\
**Post date:** [October 8, 2019, 2:32pm UTC](https://forum.babylonjs.com/t/camera-slowdown/6191/1 "2019-10-08T14:32:57Z")

</div>

I am having trouble finding the setting that controls arcRotateCamera speed through a mesh.

[https://www.babylonjs-playground.com/#WF90TC](https://www.babylonjs-playground.com/#WF90TC)

as you can see, I have set the wheelDeltaPercentage to a low value, which gives a nice smooth feel when wheeling in/out.

However when I collide with a mesh, the speed slows dramatically. I want to disable that. To see what i’m talking about, aim the camera at an angle between sphere and ground, and mousewheel until you hit the mesh. once in a mesh, you’ll see speed is slower.

I’ve tried telling the camera to checkCollisions = false, no workie.

I thought it might be in the inertial settings, but the docs don’t seem to indicate to me that’s the place, but maybe i’m wrong…

I just want the speed to stay constant all the time.

Thanks

---

<div class="post-metadata">

**Author:** ![Pryme8](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pryme8/32/7212_2.png) [@Pryme8](https://forum.babylonjs.com/u/Pryme8)\
**Post date:** [October 8, 2019, 2:40pm UTC](https://forum.babylonjs.com/t/camera-slowdown/6191/2 "2019-10-08T14:40:01Z")

</div>

I do not see the behavior you are describing.

I scrolled in and out several times with no hangs. Could you make a video?

---

<div class="post-metadata">

**Author:** ![Keeger](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@Keeger](https://forum.babylonjs.com/u/Keeger)\
**Post date:** [October 8, 2019, 2:45pm UTC](https://forum.babylonjs.com/t/camera-slowdown/6191/3 "2019-10-08T14:45:43Z")

</div>

I don’t know how to do that.

if you angle the camera so it is just above the ground, and wheel through it, you’ll notice it’s pretty slow, compared to when its in space…you have to go through the mesh tho

---

<div class="post-metadata">

**Author:** ![Pryme8](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pryme8/32/7212_2.png) [@Pryme8](https://forum.babylonjs.com/u/Pryme8)\
**Post date:** [October 8, 2019, 2:47pm UTC](https://forum.babylonjs.com/t/camera-slowdown/6191/4 "2019-10-08T14:47:57Z")

</div>

OHHHH I get what you are saying. Ummm, give me a second.

camera.wheelDeltaPercentage = 0;

You already had the answer, just needed to change the value.

---

<div class="post-metadata">

**Author:** ![Keeger](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@Keeger](https://forum.babylonjs.com/u/Keeger)\
**Post date:** [October 8, 2019, 2:52pm UTC](https://forum.babylonjs.com/t/camera-slowdown/6191/5 "2019-10-08T14:52:05Z")

</div>

but the problem is at 0, the whole camera motion becomes bouncy / too fast. I wanted a slowish smooth movement.

in space it’s fine, but inside a mesh it’s not? is there a companion setting that influences it? maybe in the mesh itself?

I made another example that’s easier to see. as you get closer to center of sphere, it slows more.

[https://www.babylonjs-playground.com/#WF90TC#1](https://www.babylonjs-playground.com/#WF90TC#1)

---

<div class="post-metadata">

**Author:** ![Pryme8](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pryme8/32/7212_2.png) [@Pryme8](https://forum.babylonjs.com/u/Pryme8)\
**Post date:** [October 8, 2019, 2:57pm UTC](https://forum.babylonjs.com/t/camera-slowdown/6191/6 "2019-10-08T14:57:12Z")

</div>

Its from the center point of the Arc camera, its not the mesh that is effecting it rather the proximity to the origin of the camera is basically having a Math.pow(value, factor) calculation I would assume so the closer you get to origin the slower its gonna be.

you could do a custom free camera, and cast a ray from it before every rendering step to set the cameras movement speed dynamically depending on the hit distance of the raycast.

---

<div class="post-metadata">

**Author:** ![Keeger](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@Keeger](https://forum.babylonjs.com/u/Keeger)\
**Post date:** [October 8, 2019, 3:12pm UTC](https://forum.babylonjs.com/t/camera-slowdown/6191/7 "2019-10-08T15:12:27Z")

</div>

oh i see what you mean.

I will have to think about this. in my specific scenario, i have a globe and then I flatten it. when its in globe form, i set the lower radius limit to the surface of the sphere. so the camera never gets close enough to origin to hit this issue.

but when i flatten it, the origin is the center of the plane, so it’s a problem.

maybe i’ll try to flatten it at the radius distance, and see how that looks.

thanks for the insight, I was spending oodles of time trying to find a setting for this!

---

<div class="post-metadata">

**Author:** ![Pryme8](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pryme8/32/7212_2.png) [@Pryme8](https://forum.babylonjs.com/u/Pryme8)\
**Post date:** [October 8, 2019, 4:05pm UTC](https://forum.babylonjs.com/t/camera-slowdown/6191/8 "2019-10-08T16:05:53Z")

</div>

use lowerRadiusLimit when its a sphere?

---

<div class="post-metadata">

**Author:** ![Keeger](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@Keeger](https://forum.babylonjs.com/u/Keeger)\
**Post date:** [October 8, 2019, 4:07pm UTC](https://forum.babylonjs.com/t/camera-slowdown/6191/9 "2019-10-08T16:07:41Z")

</div>

the issue is in plane mode. 🙂 I havent tried to bump the plane up yet, working on moving camera in arc.

but i don’t see why i can’t move the plane above the origin, and then problem goes away.

---

<div class="post-metadata">

**Author:** ![Pryme8](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pryme8/32/7212_2.png) [@Pryme8](https://forum.babylonjs.com/u/Pryme8)\
**Post date:** [October 8, 2019, 4:09pm UTC](https://forum.babylonjs.com/t/camera-slowdown/6191/10 "2019-10-08T16:09:59Z")

</div>

you could prolly still use lowerRadiusLimit because then it offsets the value its testing as the origin.

---

<div class="post-metadata">

**Author:** ![ShareQiu1994](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/shareqiu1994/32/25102_2.png) [@ShareQiu1994](https://forum.babylonjs.com/u/ShareQiu1994)\
**Post date:** [May 31, 2022, 9:07am UTC](https://forum.babylonjs.com/t/camera-slowdown/6191/11 "2022-05-31T09:07:33Z")

</div>

@Keeger Hello, I have the same problem. Did you solve it later

---

<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:** [June 29, 2022, 12:34pm UTC](https://forum.babylonjs.com/t/camera-slowdown/6191/12 "2022-06-29T12:34:29Z")

</div>

What exactly is your problem? 🙂
