소스 검색

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