Vector3 v = transform.position - lastFramePosition;. float distance = v.magnitude; // to calculate the distance we moved.
確定! 回上一頁