private void FixedUpdate() { if (mStart < 0) { return; } var pass = Time.time - mStart; pass = (pass > 1) ? 1 : pass; var per = pass / mUseTime; var vec = mTo - mFrom; var pos = Vector3Util.Scale(vec, per); mRigidbody.MovePosition(pos); if (pass < 1) { return; } mStart = -1; }