So first and foremost, the images, I feel like they accurately describe the issue.
The current hierarchy order: Head → Gun → GunParts
So I’m wondering if there is a way to fix this without making the model into a single part. I would much rather keep all the parts as separate children.
Do all the gun parts have a single transform as a parent?
Also which transform are you rotating?
No, my parts have different 'sub' parents. I'll try using a single parent. And now I am rotating a 'Head' object which the pistol is directly parented to. Edit: Just tried a single parent for all the gun parts. No luck, same issue.
Just add the parts to an empty gameObject. You can still modify them separately if you need to. At least if that is what you mean by, “I would much rather keep all the parts as separate children”.
Maybe, I currently don't see why. I'll give it world rotation a try tomorrow morning. Hopefully someone will have encountered this issue previously and let me know what's going on! :D Edit: Globally rotating made no difference to the issue.
Are you by chance using a scale other than (1,1,1) in any of the object’s in your hierarchy? You can achieve this type of thing by using a non-uniform scale on a parent and rotating anything below it.
Ooh, this sounds promising. I just tested with the root of the gun having a uniform scale. How would I set the child objects of the gun to uniform without scaling them out of proportion. And is there anything else that needs to have a uniform scale? In terms of overall hierarchy, (obviously, everything below the Body is a localScale) it is as follows: (1,1.5,1) Body (0.75,0.5,0.75) Head (1.33,1.33,1.33) Hand (0.25,0.25,0.25) Pistol And then most of the objects in the pistol have non-uniform scales.
If you're going to be doing rotations of objects underneath any parent objects, you should use a uniform scale on those parents, otherwise you'll get odd looking child objects when rotated.
Thanks, rescaling the body to uniform scale fixed the issue. Glad someone knew what was going on, and now I know. So this means that I cannot non-uniformly scale any parent without expecting issues like this to arise? Is there a way to circumvent it? Say I want to retain my bodies 1.5 y scale. (I'm probably going to make a body model and have uniform scale on it, but for future proof purposes, I would just like to know if there is a work around). Thanks for the help so far!
No, my parts have different 'sub' parents. I'll try using a single parent. And now I am rotating a 'Head' object which the pistol is directly parented to. Edit: Just tried a single parent for all the gun parts. No luck, same issue.
– Jazzer008