I'm trying to make continuous motion using Math.sin(time) on a positions Y value. The effect I get is as expected, a yo-yo type effect (up-down-up-down). However, what I'd like ideally is only one section/direction of movement (up-(reset to starting point)-up), etc.
Basically only to ignore the 2nd half of the sine curve.
It would help to see your expression, but if you wrap the Math.sin() calculation in Math.abs() it will make both halves of the sine wave positive. You might then have to add a minus sign if you want the value to instead always be negative: