ZScript line trace visual aid
Moderator: GZDoom Developers
ZScript line trace visual aid
Debugging things with line tracing can be very frustrating. I propose a visual aid that visually draws the line so that we can actually see what the trace is doing. Unreal Engine 4 has this.
-
- Posts: 111
- Joined: Wed Jun 15, 2016 2:49 pm
Re: ZScript line trace visual aid
Yes, please. Testing is so annoying, being able to see traces would be amazing.
- Rip and Tear
- Posts: 185
- Joined: Tue May 02, 2017 3:54 pm
Re: ZScript line trace visual aid
This sounds very useful; how do you think this should be implemented? Personally, I think a CVAR would be nice.
Re: ZScript line trace visual aid
In Unreal Engine 4, it is a new parameter from the trace functions themselves so I'd roll with that. A CVar would be too inflexible because you can't choose which trace to draw, and there might be a lot in the scene. :)Rip and Tear wrote:This sounds very useful; how do you think this should be implemented? Personally, I think a CVAR would be nice.
Graphics-wise, I'm imagining a 2D line drawn on the 2D canvas, or perhaps a quad spawned and stretched in the world. I wouldn't know what's best here; will leave that to the engine gods. :)
- Sir Robin
- Posts: 537
- Joined: Wed Dec 22, 2021 7:02 pm
- Graphics Processor: Intel (Modern GZDoom)
- Location: Medellin, Colombia
Re: ZScript line trace visual aid
Hi, I know this is an old thread but if anyone is looking for a line trace visualizer, I wrote one in this thread.