Went to move a GameObject that contains child GameObjects, but wanted to move certain parts at different speeds/directions. Couldn’t get the results I was aiming for and finally figured out why… the positions of my parts in the inspector are not the positions I obtain in my scripts using part.transform.localPosition. Because of this, I get unexpected behaviors. Attached are screenshots of my issue:
Yeah, I’m really not sure why this is but I’ve come to accept it as part of unity. transform.localPosition seems to always return the world-space position of the transform.
Thank you Gambit MSplitz. Ended up going that route because my parent GameObject wasn’t at the origin. Come to find out that it was the parent/child relationship (scaling) that was causing problems.