I have two lines I’m drawing with Handles.DrawLine(). I’m using three points: an origin, pos1, and pos2. These points will change and I’ll want to draw an arc between them, positioned at the origin, to illustrate the angle between them. Here’s a gif so you can see what I mean Lines
Here’s the example code I made that draws the two lines `
Handles.color = Color.red;
Vector3 _origin = new Vector3 (0, 0, 0);
Vector3 _pos1 = new Vector3 (1, 5, 2);
Vector3 _pos2 = new Vector3 (5, 0, 0);
Handles.DrawLine (_origin, _pos1);
Handles.DrawLine (_origin, _pos2);`
I have the angle between the lines. As an example here’s the information I have for the solid arc function. Handles.DrawSolidArc(_origin, X, X, _angle, 1). X means I don’t have that information yet.
This is all being done from an editor window script. Any help is great! If you need me to explain anything please ask. Thank you.