mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
It's almost imposible to change direction of wind. Reseting mCurrentTarget will allow to rotate properly.
This commit is contained in:
parent
d6f6bc65a5
commit
4a5d63dc9b
1 changed files with 1 additions and 0 deletions
|
|
@ -179,6 +179,7 @@ void ForestWind::setStrengthAndDirection( F32 strength, const VectorF &direction
|
||||||
{
|
{
|
||||||
mStrength = strength;
|
mStrength = strength;
|
||||||
mDirection = direction;
|
mDirection = direction;
|
||||||
|
mCurrentTarget.zero();
|
||||||
mIsDirty = true;
|
mIsDirty = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue