Hey,
I recently upgraded my A* Pathfinding Project to the newest beta version 4.1.7.
Now my AIPath
game object don’t rotate only on z-axis anymore although I have the rotationIn2D
checked. I didn’t change the rotation of any game object so I have no idea why it’s not working anymore.
Starting (Doesn’t follow path):
Following Path:
Before starting to follow the path, the GameObject acts perfectly fine. After starting to find the Target the GameObject starts also rotating on the x and y-axis even though RotationIn2D
being true. When deactivating RotationIn2D
the behaviour doesn’t change.
Edit:
Tried the 2D test scene that comes along with the project with the AIPath
script instead of the AILerp
script.
Result is the same buggy 2D rotation. (But the scene works fine with AILerp
)
AI Object scripts