Trail tail smoothened

This commit is contained in:
Anuken
2024-04-04 23:24:58 -04:00
parent 89433ddeb4
commit 275199fe16
+6
View File
@@ -65,6 +65,12 @@ public class Trail{
x2 = items[i + 3]; x2 = items[i + 3];
y2 = items[i + 4]; y2 = items[i + 4];
w2 = items[i + 5]; w2 = items[i + 5];
if(i == 0){
x1 = Mathf.lerp(x1, x2, counter);
y1 = Mathf.lerp(y1, y2, counter);
w1 = Mathf.lerp(w1, w2, counter);
}
}else{ }else{
x2 = lastX; x2 = lastX;
y2 = lastY; y2 = lastY;