It's almost imposible to change direction of wind. Reseting mCurrentTarget will allow to rotate properly.

This commit is contained in:
Francisco Montañés García 2018-05-09 13:49:58 +02:00
parent d6f6bc65a5
commit 4a5d63dc9b

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;
} }
} }