Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

NavMesh Agent breaks Parenting?

Discussion in 'Navigation' started by wheatgrinder, Aug 5, 2015.

  1. wheatgrinder

    wheatgrinder

    Joined:
    Mar 20, 2015
    Posts:
    21
    Forgive possible double post. I posted a very similar question in Animation, but further testing suggest it is a navigation issue.

    Using Unity 5.1 Personal

    All of my games action takes place on a "table" that the player can rotate by clicking objects.
    I have mechanim animated character that walks around on the table.
    The characters is a CHILD of the rotating table.
    I can use basic Animator control with my own script and the character rotates with the parent table correctly.
    However, WHEN I add a nav mesh agent to the character to enable him to wonder about the table.
    Rotating the table results in the character not rotating and moving eradicatly.
    What am I missing?

    FYI: I have many other objects on the map that rotate just fine, including cars that drive on roads that move etc.. I did nothing special for that to work other than parent everything to the table.
     
  2. wheatgrinder

    wheatgrinder

    Joined:
    Mar 20, 2015
    Posts:
    21
    OK, the problem seems to be that rotating the table does not rotate the navmesh. In fact it seems that such a thing is not possible with a navmesh. Unless I am mistaken, I cannot use navmesh based navigation for my rotating table.. thoughts?
     
  3. TEBZ_22

    TEBZ_22

    Joined:
    Jan 28, 2014
    Posts:
    37
    Can you have a invisible nav-agent on a static navmesh, and transform the position to a visible character on the rotating table?