Skip to content

Instantly share code, notes, and snippets.

@jakintosh
jakintosh / ProceduralBezierCurve.cs
Last active August 26, 2018 23:33
A simple, "infinite", procedural bezier curve for Unity. Includes a visualizer. Just for fun or prototyping, needs some tweaking for real use.
using UnityEngine;
public class ProceduralBezierCurve : MonoBehaviour {
// visualization variables
public float start = 0f;
public float length = 5f;
public float speed = 0.01f;
private int randomOffset = 0;