false tail

This commit is contained in:
ethan merchant 2024-11-08 23:20:49 -05:00
parent 8167ab990b
commit 6181e4ae49

View file

@ -121,8 +121,8 @@ static class Arts
)
);
}
// tail
if (Mono.grow_buffer > 0) { snake_t = 0.0f; }
// false tail
if (tailmove.state && snake_t < 1.0f) {
int i_tail = Mono.snake_len - 1;
Vec3 tail_dir = Vec3.Direction(Mono.snake[i_tail - 1].ToVec3, Mono.snake[i_tail].ToVec3);
meshes["Segment"].Draw(
@ -133,6 +133,7 @@ static class Arts
V.XYZ(1, 1, (float)(1.0 - snake_t))
)
);
}
// holes
foreach (KeyValuePair<XYZi, XYZi> hole in Mono.holes)