From 4a5d63dc9bc6f642e9f36448d01164e7ee6181b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Monta=C3=B1=C3=A9s=20Garc=C3=ADa?= Date: Wed, 9 May 2018 13:49:58 +0200 Subject: [PATCH] It's almost imposible to change direction of wind. Reseting mCurrentTarget will allow to rotate properly. --- Engine/source/forest/forestWindEmitter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Engine/source/forest/forestWindEmitter.cpp b/Engine/source/forest/forestWindEmitter.cpp index 46b879214..5d710bfe6 100644 --- a/Engine/source/forest/forestWindEmitter.cpp +++ b/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; } }