User:Dora Gustafson/moderated world wind: Difference between revisions
Jump to navigation
Jump to search
Moderated in world wind for sailing in general and racing particularely |
m Replaced <source> with <syntaxhighlight> |
||
Line 1: | Line 1: | ||
== Moderated in World Wind == | == Moderated in World Wind == | ||
The sailing community in Second Life do not use the world wind for sailing. The reasons are | The sailing community in Second Life do not use the world wind for sailing. The reasons are | ||
Line 7: | Line 6: | ||
Firstly: Everybody read the wind in sim position <0,0,0><br> | Firstly: Everybody read the wind in sim position <0,0,0><br> | ||
Secondly: The wind speed is moderated to 5 times the cubic root of the obtained wind speed | Secondly: The wind speed is moderated to 5 times the cubic root of the obtained wind speed | ||
< | <syntaxhighlight lang="lsl2"> | ||
vector windVector = llWind( -llGetPos()); // Wind velocity in region at <0,0,0> | vector windVector = llWind( -llGetPos()); // Wind velocity in region at <0,0,0> | ||
float speed = 5.0*llPow( llVecMag( windVector), .333333); // moderated speed | float speed = 5.0*llPow( llVecMag( windVector), .333333); // moderated speed | ||
windVector = speed*llVecNorm( windVector); // moderated wind velocity | windVector = speed*llVecNorm( windVector); // moderated wind velocity | ||
</ | </syntaxhighlight> | ||
With this moderated wind all sailors are guarantied the same unpredictable wind at any time<br> | With this moderated wind all sailors are guarantied the same unpredictable wind at any time<br> | ||
Statistics for the moderated wind: | Statistics for the moderated wind: |
Latest revision as of 04:04, 29 November 2024
Moderated in World Wind
The sailing community in Second Life do not use the world wind for sailing. The reasons are
- The wind is different in each position so that two sailors are guarantied to have different wind at any time
- Most of the time the wind is too light or too heavy for sailing
This moderated wind overcomes these objections
Firstly: Everybody read the wind in sim position <0,0,0>
Secondly: The wind speed is moderated to 5 times the cubic root of the obtained wind speed
vector windVector = llWind( -llGetPos()); // Wind velocity in region at <0,0,0>
float speed = 5.0*llPow( llVecMag( windVector), .333333); // moderated speed
windVector = speed*llVecNorm( windVector); // moderated wind velocity
With this moderated wind all sailors are guarantied the same unpredictable wind at any time
Statistics for the moderated wind:
measured: 33000 times (twelwe hours) Wind Mean: 15 kts Standard deviation: 3 kts Max: 24 kts Min: 3 kts
Observations:
- very suitable for sailing
- may stay almost the same over one, two or more sims
- may change slowly over time or direction may jump
- wind direction may 'jump' but only when the wind speed is low (very natural)
- all sailors have identical wind conditions and racing on equal terms is possible