You need th break the Out Hit and divide Distance / 2., then multiply it by the DirectionVector + LocationOriginVector to place it half of the line trace.
You also need to rotate it with the trace; for this we use LaserYaw.
Setting it up this way allows you to do this:
With a bit more time you can create a function that can spawn multiple widgets and distribute them like in the video.
Hope it helps. Let me know if you have any questions.
I had finally time to try it by myself. I was able to follow other ways your instractions but how did you create the DistanceTextComponent -DistanceWidget?
DistanceTextComponent is a Scene Component I used for the position and rotation. It is not a widget… just noticed it has same icon.
If you notice on the second gif when I’m only rotating the trace, the Distance text is always on the side towards the front of the cube. That is because i rotate it 180 locally relative to its parent using dot product to know on what side it is. Did not share that part because it was just me having some fun…