sbox-issues icon indicating copy to clipboard operation
sbox-issues copied to clipboard

Add DebugOverlay.Trace

Open Fortune117 opened this issue 9 months ago • 7 comments

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.

Fortune117 avatar Feb 19 '25 03:02 Fortune117

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

MrBrax avatar May 09 '25 22:05 MrBrax

What would it do?

garrynewman avatar May 10 '25 05:05 garrynewman

was DebugOverlay.Trace( TraceResult )

would draw the trace line, sphere (at trace end) and some text iirc

gio3k avatar May 10 '25 08:05 gio3k

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

MrBrax avatar May 10 '25 12:05 MrBrax

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.

Image

Image

lolleko avatar May 10 '25 13:05 lolleko

That would be awesome actually

Retroeer avatar May 10 '25 13:05 Retroeer

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.

aylaylay avatar May 10 '25 14:05 aylaylay

Added DebugOverlay.Trace

aylaylay avatar Aug 01 '25 03:08 aylaylay