Skip to content

Instantly share code, notes, and snippets.

@markdekuijer
Created January 22, 2019 09:14
Show Gist options
  • Save markdekuijer/4dd7de508ac54a6cacddd0538e6009c8 to your computer and use it in GitHub Desktop.
Save markdekuijer/4dd7de508ac54a6cacddd0538e6009c8 to your computer and use it in GitHub Desktop.
float t; xyz p0;
xyz anchor0; xyz p1;
xyz anchor1; xyz p2;
xyz handle0; xyz p3;
xyz handle1; xyz p4;
xyz r;
private void Update()
{
p0 = xyz.Lerp(anchor0, handle0, t);
p1 = xyz.Lerp(handle0, handle1, t);
p2 = xyz.Lerp(handle1, anchor1, t);
p3 = xyz.Lerp(a, b, t);
p4 = xyz.Lerp(b, c, t);
r = xyz.Lerp(d, e, t);
t += Time.deltaTime * 0.25f;
//4 seconds for full circle
//draw lines between all points
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment