0
\$\begingroup\$

I'm importing arms from blender for my first person controller but when I make the player the Arms' parent it turns 2d. I have no idea why this is happening so if anyone could help it would be very appreciated.

Unparented Arms

Parented Arms

Player Scale Factors

I'm very confused lol

\$\endgroup\$
  • 1
    \$\begingroup\$ Show us the scale factors on your player object. \$\endgroup\$ – DMGregory Mar 9 '19 at 19:47
  • \$\begingroup\$ There, thanks for the comment I guess it's because the x is 0 didn't even cross my mind. \$\endgroup\$ – JeffBrin Mar 9 '19 at 19:49
  • \$\begingroup\$ If you've solved your problem, please post your solution as an answer. :) \$\endgroup\$ – DMGregory Mar 9 '19 at 19:50
0
\$\begingroup\$

When creating my empty game object the scale along the x axis was 0. This meant that when I made the player (An empty game object) the parent, the arms inherited the 0 scale on the x factor. To fix this, change the scale on the x axis to 1 on the player gameobject :).

\$\endgroup\$
  • \$\begingroup\$ "When creating an empty game object the scale along the x axis is 0" This is not true in general. Normally a new empty GameObject will be created with scale (1, 1, 1) \$\endgroup\$ – DMGregory Mar 9 '19 at 20:56
  • \$\begingroup\$ Any idea why mine was made this way then? \$\endgroup\$ – JeffBrin Mar 9 '19 at 21:39
  • 1
    \$\begingroup\$ @JeffBrin The best advice I could give is, when creating/moving a GameObject, and it doesn't look right, it's often a good idea to go on the Hierarchy and do Right Click on Transform and Reset. Then give it the position that you want. There have been many times that Unity tried to calculate positions and scales on objects I move around, and it failed. \$\endgroup\$ – TomTsagk Mar 11 '19 at 11:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.