Search Unity

NavMesh Agent breaks transform parenting

Discussion in 'Animation' started by wheatgrinder, Aug 4, 2015.

  1. wheatgrinder

    wheatgrinder

    Joined:
    Mar 20, 2015
    Posts:
    21
    Hi all,
    I imagine this question has been answered, but I dont know the right terms to find the answer, any guidance appreciated.

    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.
    If the character is not walking or moving, just running his idle animation. I can rotate the table and he sticks to his spot.

    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 with the parent. AS IF it was no longer parented to the table object.

    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
    I think maybe I should have posted this in Navigation forum. whops