title: Astar Pathfinding Project setting z position of AI agent to incorrect values in 2D project
body: <p>I'm working on a 2D game in Unity and am using the <a href="https://arongranberg.com/astar/" rel="nofollow noreferrer">A* Pathfinding Package from Aron Granberg</a>.</p>
  <p>Everything appears to be working fine.  AIPaths are being generated and AI Agents are navigating from point to point and avoiding obstacles as expected.  It's fine <em>except for one thing</em>.</p>
  <p>The <code>position.z</code> of the AI Agent is incorrect.</p>
  <p>The spawn origin of the AI Agent has a z of 0, and the target point has a z of 0, yet the AI Agent's z fluctuates between -9 and -1 as it traverses the path.  The path itself appears to have a z position of 0 at each waypoint.</p>
  <p>I haven't modified the code in the package at all and just followed the documentation when setting it up for 2D.</p>
  <p>Any ideas what could be causing this?</p>
  <p><em><strong>NOTE: I haven't included a screenshot of it, but the prefab that is being spawned in as the AI Agent has a transform position of (0,0,0).</strong></em></p>
  <p><strong>The A-star pathfinder object:</strong></p>
  <p><a href="https://i.stack.imgur.com/p8Osc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p8Osc.png" alt="Pathfinder and grid graph set up" /></a></p>
  <p><strong>The AI Agent object (note that the Z pos is not 0):</strong>
  <a href="https://i.stack.imgur.com/b5dUq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b5dUq.png" alt="enter image description here" /></a></p>
  <p><strong>The spawn point object that sets the spawn for the AI agent:</strong>
  <a href="https://i.stack.imgur.com/pHGs0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pHGs0.png" alt="enter image description here" /></a></p>
  <p><strong>The destination target object that the AI Agent is heading to:</strong>
  <a href="https://i.stack.imgur.com/2Qy3X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2Qy3X.png" alt="enter image description here" /></a></p>