Been following this thread
but I noticed that when looking at some axis, the indicator doesn’t work properly.
can anyone help me create a hit location indicator?
Been following this thread
but I noticed that when looking at some axis, the indicator doesn’t work properly.
can anyone help me create a hit location indicator?
Hi. Try to use a bit different math:
It projects the position of actor caused damage to the player camera space. Then you can easily get direction from which your player was damaged
Output axes bounded to the camera as shown here (you can check it in your character blueprint by selecting a camera):
thanks for the fast reply, what I’m currently trying to do is rotate the image toward the damage causer, which axis should I put into the angle of the image?
Check Atan2 node. It takes two axes lengths and returns angle of hypotenuse of triangle based on these lengths. You have to put Y and Z axes inside and use resulting angle to rotate your image. You can find details about these functions here or inside UE4 example content on “Math” level
thanks a lot! it’s working great!