Lookat Camera Alternate methods,
I'm setting up some hp bar widgets above some actors, and have used the find look at node to keep the hp bars facing the camera, I want to take it a step further to add some depth to the effect, essentially to allow for some angular rotation while clamping the rotation of the widget at extremes to keep it readable. basically what my mocked up picture indicates. my current bp obviously has to be rethought, but im not sure how Any suggestions on how to best handle this? Thanks in advance for any pointers in the right direction!
asked Dec 17 '17 at 11:58 PM in Blueprint Scripting
Figure 1. Put a scene component in your character. Place it at the location that you want your widget to be place. Next, put the widget underneath that component and zero out it's relative position.
Figure 2. This step sets the rotation of the scene component to be facing the camera at all times. This will be helpful in figuring out the desired rotation in step 3.
Figure 3. Find the different (delta) between the scene component face the player and the direction the player model is facing. The SinDegrees drives the offset of the Z axis. The multiply 30 is how many degrees it'll max offset in either direction.
answered Dec 22 '17 at 07:10 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here