random leaf spawn at bamboo tip
This commit is contained in:
parent
c434d7f866
commit
b7d508b7a0
1 changed files with 11 additions and 0 deletions
11
src/Arts.cs
11
src/Arts.cs
|
@ -113,6 +113,17 @@ static class Arts
|
||||||
pos + V.XYZ(x_offset + x_wind, 5, 0),
|
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
|
// debug bezier points
|
||||||
// for (int i = 0; i < p.Length; i++)
|
// for (int i = 0; i < p.Length; i++)
|
||||||
// {
|
// {
|
||||||
|
|
Loading…
Add table
Reference in a new issue