lerp food in

This commit is contained in:
ethan merchant 2024-11-10 04:21:17 -05:00
parent 2900070ea9
commit b6e20580e6

View file

@ -171,11 +171,13 @@ static class Arts
} }
if (!Mono.eaten_latch.state) if (!Mono.eaten_latch.state)
{ {
float food_t = Mono.eaten_latch.delta == -1 ? Maths.smooth_stop((float)Mono.step_t) : 1;
meshes["Food"].Draw( meshes["Food"].Draw(
mat_mono, mat_mono,
Matrix.TR( Matrix.TRS(
Mono.food.ToVec3, Mono.food.ToVec3,
food_ori food_ori,
food_t
) )
); );
} }