Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

NavMeshPath.corners returns current position

Discussion in 'Developer Preview Archive' started by Phil W, Feb 11, 2012.

  1. Phil W

    Phil W

    Joined:
    Dec 21, 2008
    Posts:
    231
    Perhaps I'm using it wrong (limited documentation atm) but reading the array contents of NavMeshPath.corners returns current position using, for example, NavMeshAgent.path.corners returns the current position for each array entry, instead of the array of actual corner positions.

    corners.Length meanwhile correctly returns the number of corners, so I'd assume this is indeed meant to be returning corners and not immediate path points.

    Additionally, is there a way to snap rotate the Agent, rather than have it's rotation blended (since Angular Speed seems to ignore anything over a certain threshold, thus preventing fast rotations).
     
  2. Phil W

    Phil W

    Joined:
    Dec 21, 2008
    Posts:
    231
    Solved, I was indeed reading it wrong and facepalmed myself as appropriate.

    AngularSpeed still stands though.