Draw targeting icon over target

Hello,
What is the standard way to draw a targeting icon over a target like in a Flight Sim game? My thoughts are:

  1. Draw it on the HUD. If this is standard, is there an exposed vector node for where the target appears on the screen (as opposed to the 3d world location vector) that can be used to place the icon over the target? If not, what would be the best way to determine where to place the icon on the HUD?
  2. Use a billboard attached to the target. This seems like it would be a problem to keep the billboard between the target and the player.
  3. Use a billboard as a separate actor in the scene. This also would seem to be a problem to keep it in the line of sight between the player and the target.

Thanks for any help!
Byron

use the HUD project() function to transform between world space and screen space coordinates.

Perfect…Exactly what I needed…Thanks!

What if the target is behind you? It still draws the box. Is there a way to only draw it if the target is visibly in front of you?

Hello Taurian,

You could try using a 3D widget component for the same effect. As long as the widget component is set to world it will be in world space and not screen space. This means that will no longer show up in front of everything. I hope that this information helps.

Make it a great day