]> git.mxchange.org Git - flightgear.git/commit
Fix a problem with the YASim turbulence model. This change has been
authorCurtis L. Olson <curt0001@flightgear.org>
Thu, 5 May 2011 19:13:18 +0000 (14:13 -0500)
committerCurtis L. Olson <curt0001@flightgear.org>
Thu, 5 May 2011 19:13:18 +0000 (14:13 -0500)
commita4824656592279a6b22c754e0a01c28dea942253
tree0113bd5b4c3e010538ea74202e9a9cf64ae4b989
parent5566c79873e41fb47da406c3fde46823c79ce64b
Fix a problem with the YASim turbulence model.  This change has been
coordinated with and approved by Andy.

The lattice(x,y) arguments were being "WRAP()'d" but the WRAP() function
didn't make sense.  Instead it was forcing the value to zero if it was
greater than the wrap limit.  This was creating large areas of constant
values in the perlin noise maps which resulted in a "constant" turbulence
vector over time -- which is just weird.

Andy couldn't see any reason why the values should be wrapped and couldn't
remember any reason why the WRAP() function was set up like it was.

Andy wanted me to make sure and mention that he was INSANE when he wrote that
code (but now he's sane ... err, mostly.)
src/FDM/YASim/Turbulence.cpp