We use the smoothstep function to animate the Y position of the sphere. We use the constant 1 as min argument, the constant 2 as max argument and the system variable time as the parameter argument:
sphere.YPosition = smoothstep( 1, 2, time );
We preview the result:
|