Code cleanup
This commit is contained in:
@@ -28,7 +28,7 @@ public class Trail{
|
||||
for(int i = 0; i < points.size - 1; i++){
|
||||
Vec3 c = points.get(i);
|
||||
Vec3 n = points.get(i + 1);
|
||||
float size = width * 1f / length;
|
||||
float size = width / length;
|
||||
|
||||
float cx = Mathf.sin(c.z) * i * size, cy = Mathf.cos(c.z) * i * size, nx = Mathf.sin(n.z) * (i + 1) * size, ny = Mathf.cos(n.z) * (i + 1) * size;
|
||||
Fill.quad(c.x - cx, c.y - cy, c.x + cx, c.y + cy, n.x + nx, n.y + ny, n.x - nx, n.y - ny);
|
||||
|
||||
Reference in New Issue
Block a user