How would I run a constant trace between two volumes?

I am trying to run a a trace between two volumes that detects obstructions to line their line of sight. I am unsure which type of trace would do that, and how I would get the trace to follow the target volume constantly using blueprinting.

It’s probably really simple to implement, and I am just being blind.

That depends on the exact functionality but I’d say a “Single Line Trace by Objects” which will return all objects of a collision type (World static, world dynamic, pawn, character, vehicle, etc) if the trace collides with them.

To follow the target volume you really have two options. You could do one object with two separate physical bodies in which case you have the two volumes as components and could use that. If it’s always only two and won’t change this should work just fine.

The second option would be adding a variable of the volume type to your script, make it editable and select the second volume once you placed both. This would allow you to not only use the other volume but any kind of actor.

Once you have a reference to your target point you can then just get it’s location and insert that into the “End” pin.

I hope this helps.

Cheers

EDIT: Oh yea to get the constant trace don’t forget to hook this trace up with an “Event Tick”.

Thanks for this, I had pretty much figured this out, but this is most definitely the place to start looking if anyone stumbles on here with a similar issue.