Object streches when rotating a parent

I have been struggling with that problem for a long time, I imported a pistol model and everything works perfectly except that when I rotate the camera In-Game It streches like in the image. Please, help.


The first Image is while crouching

The second image is while rotating

The third Image is when it’s normal but the gun gets thiner

The fourth image is fully rotated
6876281--802940--upload_2021-2-25_10-29-18.png
And this is mi Hierarchy

Do you have any non-uniform scale on any transform in your hierarchy? Remember that any child transforms will inherit that scale as well.

1 Like

Yes, I have the player scaled in the Y to 3, also, to move and scale the gun, should I scale the EmptyGameObject named as “Gun” or move the gun model itself?

Definitely a non-uniform scaling issue. Don’t scale any objects in the main hierarchy. Only scale leaf objects. Move renderers and Colliders to leaf nodes as necessary to allow their scaling.

What do you mean with “leaf objects”? I’m sorry but I’m pretty new at developing in 3D

Leaf objects are objects that have no children in the hierarchy.

1 Like