Change direction Loom

more logical to set positive delta to increase visibility
This commit is contained in:
Bruno Herbelin
2022-02-15 23:44:54 +01:00
parent a28e4be5a3
commit 297d271e63
3 changed files with 2 additions and 2 deletions

View File

@@ -280,7 +280,7 @@ void Loom::update(Source *s, float dt)
progress_ += dt;
// move target by speed vector (in the direction of step_, amplitude of speed * time (in second))
pos_ += step_ * ( speed_ * dt * 0.001f);
pos_ -= step_ * ( speed_ * dt * 0.001f );
// apply alpha if valid in range [0 1]
float alpha = SourceCore::alphaFromCordinates(pos_.x, pos_.y);