Hello, I’m having an issue with Follower Entity moving my player’s Y and Z position values artifcially? but not in the game or scene view. What can I do to still move with my player using Follower Entity with Position Sync but have my Z value untouched? I need it for my 2D game to create a pseudo-3D layering of people and objects.
I’m having troubles wrapping my head around the structure of your game. It’s a 2D game? So you’re using a 2D Graph and 2D Scene, but they’re moving on the Z axis? I tested this (dirty and quick) and I see my agent is moving very very small amounts on the Z-axis. I’m assuming you need that to stay zero?
You can also turn off position sync and set the X and Y to the FollowerEntity.position value, and make Z = 0. Note though, your collider will also cause issues with this if you go this route, so you’ll have to work around that (or at least, I did on my end).
ai.updatePosition = false; // Set on start or in the inspector
void Update () {
var pos = ai.position;
transform.position = new Vector3(pos.x, pos.y, 0);
}