Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    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?