Hey, I couldn’t find out how to return the Sine of a number.
Let’s say I have this. What do I replace the “sin” with so it will work?
offsetY = -8 + sin offsettempY *0.2;
Hey, I couldn’t find out how to return the Sine of a number.
Let’s say I have this. What do I replace the “sin” with so it will work?
offsetY = -8 + sin offsettempY *0.2;
Assuming the .2 multiplication is supposed to be done before the sin:
offsetY = -8 + Mathf.Sin(offsettempY * 0.2);
Oh, so it’s “Mathf”. I tried with “Math”, but no luck.
Thanks, guys!