Drift
Outputs a value that keeps moving at a set speed, wrapping or bouncing at the edges of a range.
Parameters
| Name | Type | Description |
|---|---|---|
| Valueoutput | Float | The moving value. |
| Reached Edgeoutput | Trigger | Fires every time the value reaches the minimum or the maximum. Only present when Limit Range is on. |
| Speed | Float | How far the value moves per second. A negative speed moves it down. |
| Limit Range | Bool | Whether the value is kept between a minimum and a maximum. |
| Range | Vector 2 | The lowest and the highest value. Only present when Limit Range is on. |
| At Edge | Enum | What happens when the value reaches an edge. Only present when Limit Range is on.Choices: Wrap, Bounce |
| Running | Bool | Whether the value moves. While off, it holds still. |
| Reset | Trigger | Puts the value back at its start, which is 0, or with Limit Range on the minimum for a positive speed and the maximum for a negative one. |
The Drift operator outputs a value that travels on its own at a steady speed. Without a limit it starts at 0 and keeps going forever, which suits something that should scroll or rotate without end.
With Limit Range on, the value stays within the range. In Wrap mode, it jumps back to the other end when it reaches an edge. In Bounce mode, it turns around and travels the other way.
Keywords: move, scroll, animate, bounce, wrap, loop, speed, travel