# How do i make a health bar (above characters head) always look at the camera

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-a-health-bar-above-characters-head-always-look-at-the-camera/329026>\
**Category:** Character & Animation\
**Tags:** rotation, health-bar, unreal-engine, question\
**Created:** [August 18, 2015, 12:02am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-health-bar-above-characters-head-always-look-at-the-camera/329026 "2015-08-18T00:02:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViceVersa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ViceVersa](https://forums.unrealengine.com/u/ViceVersa)\
**Post date:** [August 18, 2015, 12:02am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-health-bar-above-characters-head-always-look-at-the-camera/329026/1 "2015-08-18T00:02:09Z")

</div>

So im following this tutorial [here][1]  
for making a health bar above a players head. Im trying to set up a basic tower defense game, where my camera has a top down view of the map, (meaning, its not attached to the player anymore so half of this tutorial does not help my situation). I almost have this working, but i cant figure out exactly how to line up the rotation of the health bar to look at my camera. here is my blueprint

 ![54523-bpscreenshot.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/1/cc1fec4fb20fcac9f036eccfc0053bc706bd24d3.png)

and here is what the viewport of my game is currently looking like

 ![54524-viewportscreenshot.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/7/fe7d9978b49aac6d793e2d34d455e27cb2118f11.png)

As you can see, the rotation of the health bars is not lining up correctly. Can somebody please point me in the right direction of how i can accomplish this? any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![ViceVersa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ViceVersa](https://forums.unrealengine.com/u/ViceVersa)\
**Post date:** [August 18, 2015, 10:52am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-health-bar-above-characters-head-always-look-at-the-camera/329026/2 "2015-08-18T10:52:16Z")

</div>

so instead of the rotation looking at the camera, i figured it would be easier to have the widgets rotation always stationary(going side to side like the character in the bottom as opposed to the one on the right). i set the yaw rotation to always be 90 which fixed the issue for this particular instance, however, if i wanted to rotate my camera around, this would defiantely cause issues so if anybody knows how to fix this, please let me know. Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_00a82aaf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_00a82aaf](https://forums.unrealengine.com/u/anonymous_user_00a82aaf)\
**Post date:** [March 24, 2016, 8:32pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-health-bar-above-characters-head-always-look-at-the-camera/329026/3 "2016-03-24T20:32:23Z")

</div>

Instead of GetPlayerController → GetActorLocation try GetplayerController → cast to ThirdPersonCharacter (if it’s the type of pawn of your players) → get FollowCamera → GetWorldLocation

NameDisplay - the object wich need to be rotated from the other player (of corse it needs to be retargeted)

 ![83700-ue4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/1/6c1c9c10153ffe70291574bb5bf86f57e12cebfc.png)

---

<div class="post-metadata">

**Author:** ![Demonrras](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Demonrras](https://forums.unrealengine.com/u/Demonrras)\
**Post date:** [November 14, 2018, 2:36pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-health-bar-above-characters-head-always-look-at-the-camera/329026/4 "2018-11-14T14:36:27Z")

</div>

How I can to fix this problem on my nameplate when camera go to top of character like image above?

 ![259312-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/7/f47770dd168dfe887f271a962ff8411e5711a55a.jpeg)

 ![259311-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/4/6f46d4ebd2b8a41b338c543877607d6e76907205.jpeg)

---

<div class="post-metadata">

**Author:** ![SparrowARK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SparrowARK](https://forums.unrealengine.com/u/SparrowARK)\
**Post date:** [December 24, 2023, 1:53pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-health-bar-above-characters-head-always-look-at-the-camera/329026/5 "2023-12-24T13:53:37Z")

</div>

[How To Make Auto-Rotate Health Bars and Player Names in Unreal Engine Beginner’s Tutorial (youtube.com)](https://www.youtube.com/watch?v=ePxHu_Yk-R4)

Solution is in this Video
