FlightControl-Master / MOOSE

Mission Object Oriented Scripting Environment (MOOSE) for lua mission scripting design in DCS World
http://flightcontrol-master.github.io/MOOSE/
GNU General Public License v3.0
291 stars 96 forks source link

Adding SHAPES #2113

Closed nielsvaes closed 5 months ago

nielsvaes commented 5 months ago

This adds an easy way to get drawings that were made in the Mission Editor available in MOOSE. You can also define the shape by feeding it points, so you can dynamically create shapes while the mission is running. Most of the POLYGON functionality was added to the PolygonZone a while ago. I actually use these classes quite a lot in my own scripts and find them to be very useful. There is some work that needs to be done on drawing the shapes dynamically, since :Draw() function that most of them have was just used for debug purposes, but I think we can leverage quite a lot of code from existing MOOSE-drawing functions already.

I had this lying around for quiet a while now, even before the PATHLINE was first added iirc. I think this does a lot of things that PATHLINE was envisioned to do.