We use the tan - stands for tangens - function in this example to animate the Y position of the sphere. The tan function in Xpressionist assumes the argument to be in degrees. We use time * 90 as an argument for the tan functions because we want the argument to create angle values between 0 and 360 in four seconds - like one full rotation:
sphere.YPosition = tan( time * 90 );
We preview the result:
|