# Rotating mesh to always face camera

**URL:** <https://forum.babylonjs.com/t/rotating-mesh-to-always-face-camera/11652>\
**Category:** Questions\
**Created:** [June 12, 2020, 5:35pm UTC](https://forum.babylonjs.com/t/rotating-mesh-to-always-face-camera/11652 "2020-06-12T17:35:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ti0](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ti0/32/9020_2.png) [@ti0](https://forum.babylonjs.com/u/ti0)\
**Post date:** [June 12, 2020, 5:35pm UTC](https://forum.babylonjs.com/t/rotating-mesh-to-always-face-camera/11652/1 "2020-06-12T17:35:54Z")

</div>

Hi Babylon community! My first post here, I’m starting out on a big project, so I imagine there will be many more : )  
Here’s my question:  
I have a bunch of meshes which have a “front side”. What can I do to always make the front side face the viewer ? So if I move my camera (it’s a Fly camera), then the meshes automatically rotate to face the camera. Thank you very much for taking the time to read and respond if you will 🙂

---

<div class="post-metadata">

**Author:** ![PirateJC](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/piratejc/32/1003_2.png) [@PirateJC](https://forum.babylonjs.com/u/PirateJC)\
**Post date:** [June 12, 2020, 6:38pm UTC](https://forum.babylonjs.com/t/rotating-mesh-to-always-face-camera/11652/2 "2020-06-12T18:38:17Z")

</div>

Hey @ti0! Welcome to the Babylon Family! Fantastic to have you here!

I think this is what you’re looking for:  
[https://doc.babylonjs.com/api/classes/babylon.transformnode#billboardmode\_all](https://doc.babylonjs.com/api/classes/babylon.transformnode#billboardmode_all)

I also put this little playground together to demonstrate how it works:  
[https://playground.babylonjs.com/#4ECHM3](https://playground.babylonjs.com/#4ECHM3)

In this scene I have a cube that always faces the camera. If you switch the commenting on lines 18 and 19 you can see that the cube will ONLY rotate in Y to face the camera.

Hope that’s helpful!

---

<div class="post-metadata">

**Author:** ![ti0](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ti0/32/9020_2.png) [@ti0](https://forum.babylonjs.com/u/ti0)\
**Post date:** [June 12, 2020, 6:54pm UTC](https://forum.babylonjs.com/t/rotating-mesh-to-always-face-camera/11652/3 "2020-06-12T18:54:48Z")

</div>

This is exactly what I needed!  
I’ve been using Babylon for nearly two months now, and I just love how insanely simple you make things!
