diff --git a/Boids/Assets/Scripts.meta b/Boids/Assets/Scripts.meta index 4021c25..2ebc7e0 100644 --- a/Boids/Assets/Scripts.meta +++ b/Boids/Assets/Scripts.meta @@ -1,3 +1,3 @@ fileFormatVersion: 2 -guid: b50106a18d564518ba59ebb42e02f619 -timeCreated: 1589861330 \ No newline at end of file +guid: 5a23673acb15433ea9f977712582464f +timeCreated: 1591398022 \ No newline at end of file diff --git a/Boids/Assets/Scripts/ShapeDraw.cs b/Boids/Assets/Scripts/ShapeDraw.cs new file mode 100644 index 0000000..7c7b7dd --- /dev/null +++ b/Boids/Assets/Scripts/ShapeDraw.cs @@ -0,0 +1,35 @@ +using UnityEngine; + +/// +/// A simple static utility class that assists with drawing shapes using the LineRenderer class. +/// +public class ShapeDraw { + /// + /// Draw a Arc aimed straight up with a certain angle width and radius. + /// Use to point the Arc at a certain direction. + /// + /// The LineRenderer to draw the Arc upon. + /// Angle of the Arc + /// Radius of the Arc + /// Number of vertexes to be used in the arc, clamp minimum 3 + /// + public static void DrawArc(LineRenderer lineRenderer, float angle, float radius, int vertexCount) { + + } + + /// + /// Draw a Circle with a specific radius and number of vertexes (detail level) + /// + /// + public static void DrawCircle(LineRenderer lineRenderer) { + + } + + /// + /// + /// + /// + public static void RotateLineRenderer(LineRenderer lineRenderer) { + + } +} \ No newline at end of file diff --git a/Boids/Assets/Scripts/ShapeDraw.cs.meta b/Boids/Assets/Scripts/ShapeDraw.cs.meta new file mode 100644 index 0000000..bb852f7 --- /dev/null +++ b/Boids/Assets/Scripts/ShapeDraw.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 09004a14b18b4662898d7e1cc0bc6f24 +timeCreated: 1591398023 \ No newline at end of file