A* Pathfinding Child Repositioning

Hello,

I have a map that uses A* pathfinding, with a sprite that navigates it. I have 2 questions:

  • How do I prevent the sprite child from rotating with the parent AI?

  • (I have a script already that sets an initial rotation angle, then updates transform.rotation to that value every frame, the problem being it still causes a slight rotation when changing position around the AI quickly)

  • How do I adjust the sprite so it no longer appears to walk in walls?

  • The AI is centered, so when walking along a wall top the feet appear to be inside the wall.

Thank you!

1 Like

transform.rotation = Quaternion.identity in the Update() will do the trick.