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

Children changes the parents position

Discussion in 'Editor & General Support' started by Porto881, Mar 24, 2016.

  1. Porto881

    Porto881

    Joined:
    Jul 11, 2013
    Posts:
    74
    I´m making a door and want to rotate it from the position of where the hinges are. I created an empty object which i called "pivot", put it where I want the pivot and place the door as the child to the gameobject "pivot". When I rotate the pivot the door rotates at the correct place. HOWEVER for some reason all of a sudden this stopped working. Whenever I place the door and details as children of the pivot the pivot inherits the position of the door for some reason, and that position is in the middle of the door = The door rotates around itself.

    I have done this many times before but for some reason this happened. I must have hit a checbox by accident or something?
     
  2. Porto881

    Porto881

    Joined:
    Jul 11, 2013
    Posts:
    74