Hi everyone! I've been working on a chess game and I'd like to add moving animation. Partially I achieved my goal by creating a script, but I have no idea how to add easing curve. Here is the code: Code (CSharp): using UnityEngine; public class ChessPieceMovingAnimation : MonoBehaviour { public float duration = 0.25f; private bool isXEqualZero; private Vector3 destination = Vector3.zero; private Vector3 move = Vector3.zero; public void SetDestination(float x, float y, float z) { destination = new Vector3(x, y, z); } private void OnEnable() { move = destination - transform.position; isXEqualZero = move.x == 0 ? true : false; } private void Update() { transform.position = transform.position + move / duration * Time.deltaTime; if (!isXEqualZero) { if (move.x > 0 && transform.position.x >= destination.x) { transform.position = destination; enabled = false; } else if (move.x < 0 && transform.position.x <= destination.x) { transform.position = destination; enabled = false; } } else { if (move.y > 0 && transform.position.y >= destination.y) { transform.position = destination; enabled = false; } else if (move.y < 0 && transform.position.y <= destination.y) { transform.position = destination; enabled = false; } } } }