Hello I am modding Dora Gustafsons moderated world wind. I am testing her moderated wind for speed , but use sun as wind direction.
Testing this with Dora's primy sailboat and elementary sail boat script. So far so good, I would but like to improve wind speed to be more like in RL.
That is, in the morning weak wind ,late afternoon blow strongest , sun set wind like in the morning, night time blows weakest, that kind of wind speed cycle.
Any suggestion how to do it. Me I am no scripter but like to mod stuff.. Sorry for my bad English.
Update Sun taking the reins of SL wind. Code looks now like this.
//SunWind
vector sunWind = llGetSunDirection()
windVector = llWind( -llGetPos()); // Wind velocity in region at <0,0,0>
float Wspeed = 5.0*llPow( llVecMag( windVector), .333333); // moderated speed
Wspeed = llFabs(sunWind.z * Wspeed); // this line added sun controlling moderated SLwind speed, I hope this works.
windVector = Wspeed*llVecNorm( sunWind); // moderated wind velocity