Instantiation from a moving obj doesn't happen at child obj position every time

Hi,

My characters bullet intstantiations from his gun are instantiated from an empty child obj I call muzzle position, positioned at the guns muzzle end.
When the characters shooting animation is active and the muzzle position is therefore in movement, the bullets instantiate all over the place (not from the muzzle position) from time to time. Sometimes they work sometimes they don’t. Only when instantiated from a non moving object does it work as it’s supposed to. I’m using unity 2021.3, is this a bug or could it be something with the scales being different and causing it to act strange like this perhaps, why is this happening?

Show us the code. We can’t tell you much without looking at it.

Since you mentioned “scales” – are you using non-uniform scaling (e.g. a scale of [1,3,1])? You can run into big problems if you rotate things that have a non-uniform scale; it causes shearing of objects, amongst other things.

It was a child issue. Once I moved the muzzle position obj out of the hierarchy and made it a child of the main parent it started instantiating at the desired position every time. My hierarchy of child objects have varying and non-uniform scales. I’m assuming that was what caused the issue, thanks for your help