-
Only want one part of a sin curve…?
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.
I hope this makes sense.