- Home /
charachters stand next to each other
Hello everybody,
I wonder if there's a way to assign a transform position of the "player 1" to be the transform position that is very close to "player2". My approach was, that once "player2" enters a trigger, have the box collider on that player, become the transform position of player1 (see pictures for reference) but, I don't know how to set it. Two questions: 1. what is a good approach to have one character to stand next to the other character? Maybe use a vector3 that is calculating the distance between them, and set a minimum distance float? 2. If so how can I do that? I use C# script. In my scene, player 1 is a navmesh agent, and player 2 is a First person character(in the picture they both navmesh agents).
Your answer
Follow this Question
Related Questions
Reposition to minimum distance from target 2 Answers
Finding Distances With Vector3 1 Answer
if close to one of a kind? 2 Answers
Keep camera at certain distance from character when rotating 3 Answers