Skip to content

Instantly share code, notes, and snippets.

@niksg
niksg / gist:6153815
Last active December 20, 2015 15:28
Have you ever dreamed of rotating points around other points by amounts? Have you also or instead dreamt of drawing a smooth curve between two points the l̶a̶z̶y̶ lazy way? Do you use Unity3D with C#? Then boy do I have a deal for you
using UnityEngine;
using System.Collections;
public class SmoothCurveDraw : MonoBehaviour {
public Vector2 curveStart;
public float curveAngle = 90;
public int smoothValue = 1;
public Color rayColor = Color.blue;