A simple gizmo library for ROBLOX inspired by Unity gizmos
To use, require Gizmos.lua and add a listener to Gizmos.onDraw event. The listener is passed in the Gizmos library which allows you to use its many functions to draw gizmos to your liking (look at Demo.lua for further clarification).
The onDraw event is fired every frame and thus the gizmos are redrawn
Sets the color for the following gizmos
Sets the transparency for the following gizmos
Draws a box adornment (gizmo) with the specified cframe and size
Draws a box adornment (gizmo) to visualize the region3
Draws a cone adornment (gizmo) with the specified cframe, radius and height. The cone's base will begin at the specified position and points towards the look vector.
Draws a cone adornment (gizmo) to visualize the spot light
Draws a cylinder adornment (gizmo) with the specified cframe, radius and height. The cyclinder's bases will be pointed towards the look vector
Draws a cylinder adornment (gizmo) with the specified start and end position and radius to visualize a line
Draws a cylinder adornment (gizmo) to visualize the ray
Draws a sphere adornment (gizmo) with the specified cframe and radius
Draws a sphere adornment (gizmo) to visualize the point light
The point light and spot light are not working perfectly and only give rough estimates (please help me fix them)
I have made a pooling system for the adornment objects that are used to make this efficient so you should be able to use a lot of gizmos even with them refreshing every frame
I did not add line adornment object because I found it too weird (maybe someone can add that)
You are welcome to add more functionality