Created
January 22, 2019 09:14
-
-
Save markdekuijer/4dd7de508ac54a6cacddd0538e6009c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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