I have an object i want to move in a square motion, i also need the ability to have rounded corners. I saw lots of guides on how to make circular motion like this one: but none for what i'm looking for. I would appreciate your help.
You could exponentiate your trig functions: Code (CSharp): public class Sphere : MonoBehaviour { private float radius = 3f; private float exp = 0.5f; private float incr; void Update () { incr += Time.deltaTime; float cos = Mathf.Cos(incr); float sin = Mathf.Sin(incr); transform.position = new Vector3 ( radius * Mathf.Pow(Mathf.Abs(cos), exp) * Mathf.Sign(cos), radius * Mathf.Pow(Mathf.Abs(sin), exp) * Mathf.Sign(sin), 0f ); } } The resulting movement is not even though.