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 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