c# – The pathing of my character isnt changing when i move the target using A* pathfinding project in Unity
first post here
Started unity and c# last week and decided to tackle on enemy pathing today, the problem is my flying enemy isnt changing its path when I move the player around (the target), it goes to the position where the player spawns, and then stops, weirdly enough it starts doing the opposite movements the player is doing. Ive tried disabling scripts that could potentially cause an issue, Ive tried unchecking the simulated box in the player RigidBody so that it just stands in the air, and no obstacle was added in the pathfinder grid and it still doesnt change its path.
Sorry if this is an obvious answer but I cant find the problem, Ive added pictures of the Pathfinder inspector and the EnemyAI inspector
Read more here: Source link