I wasn’t exactly sure what to call this question but here is the scenario
I have an enemy that is supposed to move towards my player. Now i want to find the players location minus a distance so that my enemy doesn’t go directly up to my players face. However, i have been unable to find anything that allows me to do this.
I know that the Vector3
of my player is gameobject.transform.position
but how do I minus say a distance of 2
from that?