mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Change direction Loom
more logical to set positive delta to increase visibility
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user