Explorar el Código

Merge pull request #2252 from pacomont/Allow_to_change_wind's_direction

It's almost imposible to change direction of wind. Reseting mCurrentT…
Areloch hace 7 años
padre
commit
6e60bf5fec
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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;
    }
 }