sbox-issues
sbox-issues copied to clipboard
Add DebugOverlay.Trace
What it is?
We used to have this in the entity system, it was real nice.
What should it be?
Same way it was in the entity system.
it feels almost impossible to debug some traces without this, as i don't know how the trace looks so i can't trust my own debug drawing
What would it do?
was DebugOverlay.Trace( TraceResult )
would draw the trace line, sphere (at trace end) and some text iirc
if it's a box trace, it would draw the box and show where it ended up, a body trace would draw the body etc, it would visualise the trace without having to debug draw every step of it yourself
In UE you can specify an option when running a trace that also draws the trace. Really useful.
We could add something similar to our trace builder.
That would be awesome actually
Having traces magically do debug traces behind the scenes is a bad idea. I am not against DebugOverlay.Trace, I didn't consider there's other traces than ray you'd want to debug so this function would be worth while.
Added DebugOverlay.Trace