# Arc Camera Collision

**URL:** <https://forum.babylonjs.com/t/arc-camera-collision/36788>\
**Category:** Questions\
**Tags:** arcrotatecamera\
**Created:** [December 22, 2022, 6:58am UTC](https://forum.babylonjs.com/t/arc-camera-collision/36788 "2022-12-22T06:58:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankit](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@Ankit](https://forum.babylonjs.com/u/Ankit)\
**Post date:** [December 22, 2022, 6:58am UTC](https://forum.babylonjs.com/t/arc-camera-collision/36788/1 "2022-12-22T06:58:30Z")

</div>

How to add the collision to Arc camera so that Arc camera will not enter into the wall of the meshes?  
Thank You

---

<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:** [December 22, 2022, 10:44am UTC](https://forum.babylonjs.com/t/arc-camera-collision/36788/2 "2022-12-22T10:44:01Z")

</div>

See:

> **[Camera Collisions | Babylon.js Documentation](https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_collisions#arcrotatecamera)**
>
> Dive into understanding camera collisions, mesh collisions, and gravity.

---

<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:** [December 22, 2022, 11:52am UTC](https://forum.babylonjs.com/t/arc-camera-collision/36788/3 "2022-12-22T11:52:36Z")

</div>

```auto
//at scene level
scene.collisionsEnabled = true;

//for the camera
camera.checkCollisions = true;

//check collisions for all visible meshes
for (var i = 0; i < scene.meshes.length; i++) {
    if(scene.meshes[i].isVisible == true){
    scene.meshes[i].checkCollisions = true;
    }
}

```

Also note that collisions are checked only on the frontface of a mesh, clone or instance.  
And then although I just gave you the script, I can only recom you would take a quick tour of the link shared above for a better understanding. Meanwhile, have a great day 🕶
