Tag Info

New answers tagged

1

Vector3.MoveTowards() will suit your use case perfectly. Here is the sample from the documentation: using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { public Transform target; public float speed; void Update() { float step = speed * Time.deltaTime; transform.position = ...



Top 50 recent answers are included