Hi all,
I am trying to instantiate and arrow from a soldier and having it hit and enemy at a predefined location. The arrow should follow a curve. However, I not sure how to tackle this. I thought Slerp was used for this, but I can’t get it to work correctly. Is there a standard function for curved trajectories in unity, or should I make my own?
var arrow = Instantiate(arrowPrefab, transform.position, Quaternion.identity);
arrow.transform.position = Vector3.Slerp(transform.position, currentTarget.position, 1.0f);