# CollisionMask for ArcRotateCamera (or workaround)?

**URL:** <https://forum.babylonjs.com/t/collisionmask-for-arcrotatecamera-or-workaround/38604>\
**Category:** Questions\
**Created:** [February 28, 2023, 11:13am UTC](https://forum.babylonjs.com/t/collisionmask-for-arcrotatecamera-or-workaround/38604 "2023-02-28T11:13:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jo\_Mantelers](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@Jo\_Mantelers](https://forum.babylonjs.com/u/Jo_Mantelers)\
**Post date:** [February 28, 2023, 11:13am UTC](https://forum.babylonjs.com/t/collisionmask-for-arcrotatecamera-or-workaround/38604/1 "2023-02-28T11:13:38Z")

</div>

I am looking for a way to manage collision check of my ArcRotateCamera using bit masking, like is possible for meshes etc (as in `mesh1.collisionGroup & mesh2.collisionMask`).

However, ArcRotateCamera has no collisionMask.

Right now all I can do is Camera.checkCollisions= true/false;

Any suggestions?

I tried with a dummy mesh attached to the camera but to make this mesh the ‘master’ of the camera controls requires a full rewrite of the wonderful arcrotatecamera controls.

---

<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:** [February 28, 2023, 11:47am UTC](https://forum.babylonjs.com/t/collisionmask-for-arcrotatecamera-or-workaround/38604/2 "2023-02-28T11:47:27Z")

</div>

This topic might be of interest to you (although I’m not sure it will cover all your needs).  
If you have questions on this method ask @labris. It seems he knows his bit around it.

> [@How we can achieve advance collision detection with arcRotate camera](https://forum.babylonjs.com/t/how-we-can-achieve-advance-collision-detection-with-arcrotate-camera/35677/9):
>
> @11128 Thank you for your assistance. The experience is not smooth since the screen flashes when adjusting the radius, and the radius is static, which will not function in a dynamic collision situation.

---

<div class="post-metadata">

**Author:** ![Jo\_Mantelers](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@Jo\_Mantelers](https://forum.babylonjs.com/u/Jo_Mantelers)\
**Post date:** [March 8, 2023, 7:55am UTC](https://forum.babylonjs.com/t/collisionmask-for-arcrotatecamera-or-workaround/38604/3 "2023-03-08T07:55:21Z")

</div>

Thank you for this suggestion but did not work for me.

I have a proper 3rd person controller (avatar and arcrotatecam) that does all I need, **except** for this case where the avatar should collide with mesh A and mesh B, but camera should only collide with mesh A and not with mesh B.

Still hoping for a easy trick from somebody.

Thanks in advance!

---

<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:** [April 6, 2023, 2:14pm UTC](https://forum.babylonjs.com/t/collisionmask-for-arcrotatecamera-or-workaround/38604/4 "2023-04-06T14:14:46Z")

</div>

Unfortunately we don’t have the property there, but if you have a need for it you could post on Feature Request section? 🙂
