瀏覽代碼

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

Francisco Montañés García 7 年之前
父節點
當前提交
7ab7993b76
共有 1 個文件被更改,包括 1 次插入0 次删除
  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;
    }
 }