Hi, Basically i have a game object “Hunter” witch fires another object “Dart” in 3 different directions, fires left ,straight and right and repeats endlessly, the problem i am having is to point that “Dart” in the direction it is going.
here is the sample i tried the LookAt and Quaternion.LookRotation with no success any help appreciated.
`while (canShoot)
{
start = _dartInstance.transform.position;
_dartInstance.transform.position = Vector3.MoveTowards(start, destination, Speed * Time.deltaTime);
//_dartInstance.transform.position = Vector3.Lerp(start, destination, Speed * Time.deltaTime);
_dartInstance.transform.LookAt(destination);
if (start == destination)
{
canShoot = false;
yield return null;
}
yield return null;
}`