Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by MatriXz · Apr 07, 2014 at 12:48 AM · blendermeshcollider

Blender, Unity - axis not right

Hello, there are many similar question like this one, but ive already tryed most of the suggestions and they didnt work.. I think unity takes my scripts as suggestions rather than commands.

I have a mesh in blender, that has forward +X, up -y, right -z. I have played around with rotating the mesh in many different ways, and the same problem always occures when its imported into unity: the mesh rotates fine and ill simply rotate by 90 degrees in the directions i need, but the mesh Collider / rigidbody will always want to be in its side facing the wrong direction..

I found a way to rotate the mesh in such a way that the collider/rigidbody are the same in object view, but when i make prefab of it, and instantiate one of these via code, the mesh is wrong. and transforms.forward points in the direction of the model's left.

I could ofc take into account that the mesh is facing the wrong way etc, and compensate via ninja code, but future meshes might not have the same problem, and then everything will be wrong and much more difficult.

Can anyone please tell me how i should face a mesh in blender, and what to do step by step in unity, to make sure that forward is pointing in the right direction always? Thanks for any help.

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MatriXz · Apr 07, 2014 at 10:31 PM 0
Share

Any Future readers, i finally figured out how this works, so i thought i would explain this in a "not so expert" way..

In blender, you make sure that Z is pointing in the direction of the front of your model.. Y is pointing UP, and X is at a side (left or right).. Then Ctrl + A > Rotation, and save it to your Assets in unity..

Once you have done this, add it to your scene, and look at the axis.. in both global and local orientation, you should have Z being the front, Y Up and X being to a side.. if this is true then you have been successful..

(global and local can be found in the top left of unity's Scene view, a small button with the text global or local, clicking the button will switch from global to local coordinates).

Hope this will save someone's time alot, and thanks to the people who took their time to answer my question.

avatar image Combinacijusx · Oct 25, 2015 at 09:03 PM 0
Share

Thanks! Turned object to same axis and everything work nicely :)

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Radivarig · Apr 07, 2014 at 01:08 AM

Have you baked your transform? You can do that by ctrl + A> bake position, rotation, scale. That will tell to whatever reads your model that its default position, rotation and scale are the ones you applied. Press N, in transform panel everything should be (0 ,0, 0).

Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MatriXz · Apr 07, 2014 at 06:15 AM 0
Share

so baking transforms is that in blender or unity?

avatar image Radivarig · Apr 07, 2014 at 07:53 AM 0
Share

This is for Blender, Unity is not intended to be a model editor by default. There are also some options for axis orientation when exporting from Blender, on left side. You should start with default after you bake and see if the axis are ok, if not and you notice the symmetry like 180 or 90 degrees then you are on a good way, if the Blender exporter doesn't do the trick you can rotate your model and bake again.

avatar image MatriXz · Apr 07, 2014 at 08:23 AM 0
Share

alright.. followup question, (because i love to be sure b4 i mess around with things).. The way my mesh is rotated currently in blender, when i bake it, that will become "default facing" for unity aswell, aka when i port it into unity, the coordinates should be 0,0,0 in the rotation and the axis should be correct? or have i completely misunderstood what your saying? :) sorry for being noob..

avatar image Lo0NuhtiK · Apr 07, 2014 at 08:29 AM 0
Share

http://www.youtube.com/watch?v=z3u$$anonymous$$ojTzVEo

I haven't watched that, but you can. It may be helpful. Add another comment about if it is or not so others who find this topic will know.

avatar image MatriXz · Apr 07, 2014 at 01:06 PM 1
Share

Thanks alot, i will try this when i get home from work.. and nope, it was very well explained, and easy (ish) to understand :)

Also thanks for the youtube video, ill definitly look at that also..

Show more comments
avatar image
0

Answer by getyour411 · Apr 07, 2014 at 12:50 AM

Export from Blender as FBX; on the FBX exporter you can set the x/y/z but the default values are correct for Unity

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MatriXz · Apr 07, 2014 at 06:14 AM 0
Share

so your saying that the settings in the fbx editor are for "what format the reciving end will expect"? Or "what direction the mesh's forward and up is"?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

25 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why isn't my mesh collider for my Blender model working? 1 Answer

Generate Colliders not working on FBX imported object 1 Answer

Weird Blender Mesh collider 1 Answer

Unable to import mesh from blender 1 Answer

Blender 3D Model Mesh Backwards? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges