Line tracers for raycasts?


#1

I’m trying to reproduce the following technique:

Based on the Urho docs, the only thing I found was the DebugRenderer AddLine function. But I’m pretty sure I’m not supposed to use that for an in-game feature. Does anyone have any suggestion on how to properly render lines on top of a raycast?


#2

You could use a BillboardSet for the bullets with the FaceCameraMode set to FC_DIRECTION. There’s a sample demonstrating its use.
A single raycast is instant, so you’d have to add an artificial delay in that case.


#3

Or paint them lines with particles


#4

I think that technically comes down to the same with part of the desired control for this situation replaced by unneeded features.


#5

I had some prototypes, check this:


It looks quite close to what you’ve shown in video