Merge pull request #2252 from pacomont/Allow_to_change_wind's_direction

It's almost imposible to change direction of wind. Reseting mCurrentT…
This commit is contained in:
Areloch 2018-07-12 15:42:51 -05:00 committed by GitHub
commit 471bdcaefe

View file

@ -179,6 +179,7 @@ void ForestWind::setStrengthAndDirection( F32 strength, const VectorF &direction
{ {
mStrength = strength; mStrength = strength;
mDirection = direction; mDirection = direction;
mCurrentTarget.zero();
mIsDirty = true; mIsDirty = true;
} }
} }