As a developer it can be hard to generate debug drawing information without using tools that are overkill for the scenario. I am specifically talking about drawing debug triangles between nodes. It is currently possible to generate two WedgeParts to fill a gap between 3 points pretty easily, but that involves dealing with the overhead of physics and unnecessary triangle draw calls plus overly complicated shading techniques. I would like an alternative method using 3 Attachment objects to draw a single triangle or two triangles for front + back faces without any unnecessary overhead.
// concept pseudocode
class TriangleDisplay : public Instance
{
public:
Attachment attachment0;
Attachment attachment1;
Attachment attachment2;
Color3 color;
bool visible;
bool backFaceVisible;
// any other potential appearance customization properties
Event clicked;
Event released;
}
The biggest benefit is that developers would no longer need to create or use 3rd party triangle generation code on the Lua side. Triangles would automatically update as attachments are moved so less experienced developers have easier access to the technology and the overhead would be much smaller than calculating wedge CFrames in Lua.
I would also like to request a more transparent API for listening to mouse input on attachments and constraint objects since they already have built in studio tool support and work well with debug drawing.
These would look a lot nicer with debug triangles:
If any of my examples or points are outdated/misinformed please lemme know because I could really use some more debugging tools.