Not sure why this isn’t working…
The projectile just seems to orbit around the target.
void OnCollisionEnter(Collision other) {
if(other.collider.tag == "RangedTarget"){
_shot = false;
Destroy(this.gameObject);
}
}
In the update, the projectile just moves and alters it’s facing direction if the _shot variable is true.