mathf.pingpong unity rotatiion code example
Example: mathf.pingpong unity rotatiion
transform.rotation = Quaternion.Euler(0f, Mathf.PingPong(Time.time * rotateSpeed, 90f), 0f);
transform.rotation = Quaternion.Euler(0f, Mathf.PingPong(Time.time * rotateSpeed, 90f), 0f);