Friday, March 24, 2006

Grass Breeze Simulation


Replace the position of the tip of each grass by a call to this function.

float grassBreeze( void )
{
static int t = 0;

return (cos(fPI * (t += 2)/360)*6)/50+0.4;
}

2: Speed
6: Wideness

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home