Przeglądaj źródła

Merge pull request #2252 from pacomont/Allow_to_change_wind's_direction

It's almost imposible to change direction of wind. Reseting mCurrentT…
Areloch 7 lat temu
rodzic
commit
6e60bf5fec
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      Engine/source/forest/forestWindEmitter.cpp

+ 1 - 0
Engine/source/forest/forestWindEmitter.cpp

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