false tail
This commit is contained in:
parent
8167ab990b
commit
6181e4ae49
1 changed files with 13 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue