• 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
0
Question by HROP · Dec 21, 2010 at 07:24 AM · modeling

How to model to avoid orientation problems

I have a simple tank model,

but for some reason, when it is imported and I place it on the ground of my level. The X and Y are rotated by -90 (or + 270) degrees. This prevents it from aiming correctly at the player when I apply a lookAt script to it.

here is the script

var myTransform : Transform;

function Update () { transform.LookAt(myTransform); transform.rotation.z = 0; transform.rotation.x = 0; }

However in MAX, my pivot points are OK. And the script works OK as well. I am positive that this is caused by the model, because I have applied the same script to a cube with a rectangle parented to it, and it behaves as it is supposed to.

What is it that I have done wrong with the modeling ? Any idea ?

Comment
Add comment · Show 1
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 yoyo · Dec 21, 2010 at 05:54 PM 0
Share

Note that coordinate systems can vary between modelling packages, which can cause your models to import pointing the wrong way. You can probably rotate the model in the package and then freeze the transforms. Alternatively, look at the model in the Project view and see if there are importer settings to change orientation or axes.

1 Reply

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

Answer by Nynex71 · Dec 21, 2010 at 07:33 AM

possibly when making the model you had it turned on the wrong axis.... you could just go back and rote it 90 degrees and everything should be fine :D have a merry christmas

Edit:

Or rotate it the correct way in unity3d and than place it in an empty game object... attaching all scripts to the empty game object instead of the model...

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 HROP · Dec 21, 2010 at 07:48 AM 0
Share

Thanks, I tried this already, and it didn't work. But by playing around with the model I ended up fixing it somehow. I guess that the error must have been caused when max crashed while I had Unity open. Anyway, everything is back to normal now.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

My character from blender moves side ways (How to rotate the model) 2 Answers

Level Design - Collision Detection and Triangle Count 0 Answers

how to use 3ds max models in unity 3d? 2 Answers

Any newb guides/answers to 3D modeling? 1 Answer

are there any runtime 3D modeling tools? 0 Answers


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