Hi,
I want to make a character (agent) move to another agent automatically.
I only got it to work with
private void FixedUpdate()
{
GameObject UnitPlayer = GameObject.FindGameObjectWithTag("Player");
transform.position = Vector3.Lerp(transform.position, UnitPlayer.transform.position, Time.deltaTime);
}
But: The closer the agent gets to the other agent it gets slowed down.
Also, and that is my main gripe, that humanlike character doesn’t walk anymore.
It just “flies”. So, I don’t know how to play the animation alongside the Lerp.
Thx.
Regards
Jan