# How I can stop the camera completely?

**URL:** <https://forum.babylonjs.com/t/how-i-can-stop-the-camera-completely/20953>\
**Category:** Questions\
**Tags:** camera\
**Created:** [May 19, 2021, 11:58pm UTC](https://forum.babylonjs.com/t/how-i-can-stop-the-camera-completely/20953 "2021-05-19T23:58:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![CoderGuy](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/coderguy/32/16218_2.png) [@CoderGuy](https://forum.babylonjs.com/u/CoderGuy)\
**Post date:** [May 19, 2021, 11:58pm UTC](https://forum.babylonjs.com/t/how-i-can-stop-the-camera-completely/20953/1 "2021-05-19T23:58:34Z")

</div>

There is one way to stop any camera movement like on this site [https://www.steidle.net/playground/webgl/shirt/test.html](https://www.steidle.net/playground/webgl/shirt/test.html)

---

<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:** [May 20, 2021, 12:38am UTC](https://forum.babylonjs.com/t/how-i-can-stop-the-camera-completely/20953/2 "2021-05-20T00:38:12Z")

</div>

Something like this - [Babylon.js Playground](https://playground.babylonjs.com/#A1GGPI)  
You’ll need to define the best values for your case with  
` camera.lowerBetaLimit`  
` camera.upperBetaLimit`

---

<div class="post-metadata">

**Author:** ![CoderGuy](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/coderguy/32/16218_2.png) [@CoderGuy](https://forum.babylonjs.com/u/CoderGuy)\
**Post date:** [May 20, 2021, 7:25am UTC](https://forum.babylonjs.com/t/how-i-can-stop-the-camera-completely/20953/3 "2021-05-20T07:25:32Z")

</div>

I don’t want anything to move ! because I want to use the mouse event for another thing.  
on this playground the camera move to the top.

---

<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:** [May 20, 2021, 7:55am UTC](https://forum.babylonjs.com/t/how-i-can-stop-the-camera-completely/20953/4 "2021-05-20T07:55:49Z")

</div>

Just detach the camera controls: `camera.detachControl();`

---

<div class="post-metadata">

**Author:** ![CoderGuy](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/coderguy/32/16218_2.png) [@CoderGuy](https://forum.babylonjs.com/u/CoderGuy)\
**Post date:** [May 20, 2021, 10:57am UTC](https://forum.babylonjs.com/t/how-i-can-stop-the-camera-completely/20953/5 "2021-05-20T10:57:39Z")

</div>

> [@Evgeni\_Popov](#):
>
> camera.detachControl();

not working for me

thats my code

```
    export const LoadScene = (e: any) => {
  const { canvas, scene, engine } = e;

  var camera = new BABYLON.ArcRotateCamera(
    "camera",
    BABYLON.Tools.ToRadians(180),
    BABYLON.Tools.ToRadians(70),
    10,
    BABYLON.Vector3.Zero(),
    scene
  );

  camera.lowerBetaLimit = 1;
  camera.upperBetaLimit = 1;
  camera.attachControl(canvas, true);
      camera.detachControl();

  // keyboardRotate"
  var light = new BABYLON.HemisphericLight(
    "light1",
    new BABYLON.Vector3(0, 1, 0),
    scene
  );

  light.intensity = 0.7;

  engine.runRenderLoop(() => {
    if (scene) {

      scene.render();
    }
  });
};

```

---

<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:** [May 20, 2021, 11:00am UTC](https://forum.babylonjs.com/t/how-i-can-stop-the-camera-completely/20953/6 "2021-05-20T11:00:45Z")

</div>

At your [example](https://www.steidle.net/playground/webgl/shirt/test.html) the camera isn’t completely stopped; one can even see it’s changing alpha and beta values while browsing the model.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/7/2/72f98bb3156481acfe3153c5a8bc1842d1734a7f.png)  
If you want to disable vertical movement just use the same values for upper and lower beta limit - [https://playground.babylonjs.com/#A1GGPI#1](https://playground.babylonjs.com/#A1GGPI#1)  
If you want to disable camera competely - use `camera.detachControl();`

---

<div class="post-metadata">

**Author:** ![CoderGuy](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/coderguy/32/16218_2.png) [@CoderGuy](https://forum.babylonjs.com/u/CoderGuy)\
**Post date:** [May 20, 2021, 11:07am UTC](https://forum.babylonjs.com/t/how-i-can-stop-the-camera-completely/20953/7 "2021-05-20T11:07:51Z")

</div>

I did what you say, now when I mouse hover the object make something like zoom and go in another side following the mouse.

---

<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:** [May 20, 2021, 11:25am UTC](https://forum.babylonjs.com/t/how-i-can-stop-the-camera-completely/20953/8 "2021-05-20T11:25:58Z")

</div>

Do you mean you’d like something like that - [https://playground.babylonjs.com/#1JYENJ#10](https://playground.babylonjs.com/#1JYENJ#10) ?
