Browse Source

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

Francisco Montañés García 7 năm trước cách đây
mục cha
commit
7ab7993b76
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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;
    }
 }