お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close現在の位置 current
から target
に向けて移動します
これは本質的にはVector2.Lerpと同じですが、代わりにこの関数ではスピードが maxDistanceDelta
を超えないことが保証されています。
target
が負の値だと、 target
から遠ざかっていきます。