AggrorJorn Posted October 17, 2016 Share Posted October 17, 2016 I really would like to see a simple a drawline function for the editor. Back with Le2 you could do this by making a connection. I am not talking about linking objects (as demonstrated in the video), but purely drawing a line between two 3d vectors while in the editor. function Script:EditorDraw() Editor:DrawLine(position1, position2, color) end 1 Quote Link to comment Share on other sites More sharing options...
macklebee Posted October 17, 2016 Share Posted October 17, 2016 Visible in the 3d perspective or just the 2d viewports? For what purpose out of curiosity? Will this be used/visible in game as well? Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
reepblue Posted October 17, 2016 Share Posted October 17, 2016 Can be a script property like. Script.line=Vec2(0) --line Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
AggrorJorn Posted October 17, 2016 Author Share Posted October 17, 2016 Visible in the 3d perspective or just the 2d viewports? For what purpose out of curiosity? Will this be used/visible in game as well? I am working on a camera path system. I use a similar system for indicating the ai paths. With all these of pivots I am starting to lose track of things. Currently I am solving this by having a small entity underneath each camera node to identify it, but this system is not very flexible and a pain to keep up to date. Drawing an in-editor line with 2 given 3d positions and perhaps even a color, I can distinguish these paths. Besides the pivots I can't get any feedback to how these paths look. Perspective viewport would be nice, possibly togglable for the editor windows. Drawing these lines during game runtime would be in the same category as debug lights, debug navmesh etc. So it could certainly help, but the main "tool" I would like to see is the drawing of lines while inside the editor views. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.