Search Unity

Navmesh Agent walking backward in new Unity version?

Discussion in 'Navigation' started by IndieMarc, Jul 2, 2020.

  1. IndieMarc

    IndieMarc

    Joined:
    Jan 16, 2017
    Posts:
    183
    I published an asset on the asset store that is using navmesh. And it works perfectly for most users. But some people using the latest unity versions (2019.4+) seems to have an issue where the character is facing backward while walking, when my script are using the NavMesh with SetDestination.

    It works perfectly when the navmesh is disabled so the issue is with the Navmesh Agent SetDestination function.

    Is the Navmesh Agent supposed to face Z+ or Z- (locally, not world space) ?? My prefab was made to face Z+ but its facing Z- for some users. The walking path is ok, its just the rotation of the agent that is reversed.

    What causes that?