random leaf spawn at bamboo tip

This commit is contained in:
ethan merchant 2024-12-21 09:47:13 -05:00
parent c434d7f866
commit b7d508b7a0

View file

@ -113,6 +113,17 @@ static class Arts
pos + V.XYZ(x_offset + x_wind, 5, 0),
};
if (Noise.u_scalar < 0.1f * Time.Stepf)
{
VFX.Leaf(p[3]);
// static float fall_timer = 0.0f;
// fall_timer -= Time.Stepf;
// if (fall_timer <= 0.0f)
// {
// fall_timer = 1.0f;
// }
}
// debug bezier points
// for (int i = 0; i < p.Length; i++)
// {