# UniversalCamera's rotation sometimes 'snaps' to slightly different values

**URL:** <https://forum.babylonjs.com/t/universalcameras-rotation-sometimes-snaps-to-slightly-different-values/60056>\
**Category:** Questions\
**Created:** [August 13, 2025, 5:09pm UTC](https://forum.babylonjs.com/t/universalcameras-rotation-sometimes-snaps-to-slightly-different-values/60056 "2025-08-13T17:09:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Censor](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@Censor](https://forum.babylonjs.com/u/Censor)\
**Post date:** [August 13, 2025, 5:09pm UTC](https://forum.babylonjs.com/t/universalcameras-rotation-sometimes-snaps-to-slightly-different-values/60056/1 "2025-08-13T17:09:36Z")

</div>

I have a bug that is hard to reproduce for me because I’m not sure why or when it happens exactly.

While moving a UniversalCamera around, tied to a characterController’s position, the camera sometimes snaps to a different position. It’s not a huge difference, but you’ll notice it when you see it. I checked it on another device and it shows the same behavior:

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

You’ll need to move around for a bit and look around for it to happen - again, not sure what exactly causes it. Seems to at least happen in the open space in the room next of where you start.

Could it have to do with the issue from this thread?:

> [@UniversalCamera flipping after its position.z goes over specific value](https://forum.babylonjs.com/t/universalcamera-flipping-after-its-position-z-goes-over-specific-value/59285):
>
> Hello guys, Currently working on a common project along with @splash27, we are struggling with a strange bug where a UniversalCamera will flip, when position.z reaches a specific value. Here is a repro : In this repro the camera.position.y is 20, and the flip will occur at 64.0 (see the console) But it depends on the position.y : if position.y == 10, the flip will happen at 32.0, etc, etc… thinking

It’s not the collision with the objects that I mean, I have an empty floor in my own project, and it still happens while just rotating and moving around.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [August 13, 2025, 9:44pm UTC](https://forum.babylonjs.com/t/universalcameras-rotation-sometimes-snaps-to-slightly-different-values/60056/2 "2025-08-13T21:44:38Z")

</div>

cc @georgie

---

<div class="post-metadata">

**Author:** ![georgie](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/georgie/32/46049_2.png) [@georgie](https://forum.babylonjs.com/u/georgie)\
**Post date:** [August 13, 2025, 11:01pm UTC](https://forum.babylonjs.com/t/universalcameras-rotation-sometimes-snaps-to-slightly-different-values/60056/3 "2025-08-13T23:01:12Z")

</div>

I have been playing around with the above playground (cool project btw! is it for a game?) but am unable to reproduce the camera behavior you mentioned (only when colliding with objects). Would you be able to create a simpler playground that doesn’t have all of the collidable objects and if still reproing send a new link? Thank you!

---

<div class="post-metadata">

**Author:** ![Censor](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@Censor](https://forum.babylonjs.com/u/Censor)\
**Post date:** [August 14, 2025, 2:29pm UTC](https://forum.babylonjs.com/t/universalcameras-rotation-sometimes-snaps-to-slightly-different-values/60056/4 "2025-08-14T14:29:07Z")

</div>

I just put a UniversalCamera on the (great!) characterController demo and called it a day 😃 it’s pretty much the same in my own game project.

I noticed that if you start the PG, and don’t move the character but move the camera left and right (about 90 to 180 degrees or so, it’s hard to tell - don’t move up and down too much) it seems to happen relatively often. Can you reproduce?

---

<div class="post-metadata">

**Author:** ![Censor](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@Censor](https://forum.babylonjs.com/u/Censor)\
**Post date:** [August 15, 2025, 4:25pm UTC](https://forum.babylonjs.com/t/universalcameras-rotation-sometimes-snaps-to-slightly-different-values/60056/5 "2025-08-15T16:25:50Z")

</div>

Tried on 2 different devices, different monitors, resolutions, different mice, different browsers, just to make sure it wasn’t any of that. Could reproduce on all devices.

Sometimes it takes a while for it to start happening, sometimes it took a few minutes. I _think_ it has to do with rotation around the y-axis. Rotating a lot around that seems to trigger it eventually.

I do not know why this happening so I can’t be more precise than that, but unfortunately for an fps style game project of mine this is pretty much game-breaking for now ☹

---

<div class="post-metadata">

**Author:** ![georgie](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/georgie/32/46049_2.png) [@georgie](https://forum.babylonjs.com/u/georgie)\
**Post date:** [August 18, 2025, 7:58pm UTC](https://forum.babylonjs.com/t/universalcameras-rotation-sometimes-snaps-to-slightly-different-values/60056/6 "2025-08-18T19:58:26Z")

</div>

@Censor can you take a screen recording to display what you’re seeing? The character controller PG also has quite a bit of collisions interfering with the rotation so I am not able to reproduce what you mentioned (I am likely being dense). A simple playground link would also work, thank you!

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [August 19, 2025, 7:22pm UTC](https://forum.babylonjs.com/t/universalcameras-rotation-sometimes-snaps-to-slightly-different-values/60056/7 "2025-08-19T19:22:31Z")

</div>

I was moving quite a bit around the scene but I didn’t experience anything strange…

---

<div class="post-metadata">

**Author:** ![Censor](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@Censor](https://forum.babylonjs.com/u/Censor)\
**Post date:** [August 20, 2025, 9:43pm UTC](https://forum.babylonjs.com/t/universalcameras-rotation-sometimes-snaps-to-slightly-different-values/60056/8 "2025-08-20T21:43:28Z")

</div>

I’ll see if I can make a recording and change the PG this week to illustrate the issue.

---

<div class="post-metadata">

**Author:** ![Censor](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@Censor](https://forum.babylonjs.com/u/Censor)\
**Post date:** [December 25, 2025, 1:47pm UTC](https://forum.babylonjs.com/t/universalcameras-rotation-sometimes-snaps-to-slightly-different-values/60056/9 "2025-12-25T13:47:21Z")

</div>

Just to update, the issue I’m having seems to be the same as mentioned here: [Camera angularSensibility vs. speed?](https://forum.babylonjs.com/t/camera-angularsensibility-vs-speed/61894)
