Closed sdiaz7 closed 7 years ago
Try this if you want towers to check if they are facing the target:
private bool IsFacingOther(Transform other)
{
if (Vector3.Dot(transform.forward, (other.position - transform.position).normalized) == 1)
{
return true; // Return true if facing target.
}
return false;
}
Issue done in parallel with #162.
Pull Request at #180
Merged at #180
Definition of Done