Hello, in my game the view is in 2d, character only need to move on X axis.
my npc only have animation data/rigidbody/colider
i only need to move them on X axis and keep them stick to the terrain with gravity
im tryin to make some AI ( i use free unity and dont have pathfinding solution) when i want them to attack my character i store character position+ a small offset in a variable (i use Get Position: he take X,Y,Z)
and use Move Toward action.
my problem is the follow the character on Y axis, i dont want that, i have seen constraint action for ignore axis, but i need my npc move on Y depending to the terrain!
is there a better solution?