Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by Kourosh · Oct 31, 2010 at 11:55 AM · quaternionflip

Why my instantiated 3d text is flipped?

I have a 3d text which always look at the camera using the SmoothLookAt script. I copy exactly the same quaternion information (x,y,z,w) of the text to instantiate 3dtexts on run time exactly at the same rotation position of that first reference 3d text but what i get is a flipped text. What is going wrong?

happy halloween:)

Comment
Add comment
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

5 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by Gorov · Dec 15, 2011 at 09:24 PM

It's very simple, just change the X scale of your 3DText to -1.

Comment
Add comment · Show 2 · 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 Jetzz · Aug 16, 2014 at 01:39 AM 0
Share

Thanks !!!!

avatar image DeLannoy04 · Jun 19, 2020 at 09:08 AM 0
Share

Hi, your answer works like charm, but I'm curious if you know why this issue exists? Is this a unity bug?

avatar image
0

Answer by e-bonneville · Oct 31, 2010 at 12:02 PM

I think it's because the LookAt function doesn't work quite like you'd expect; sure, it makes the object look at you, but it's making the Z axis point at you. That isn't necessarily the front.

Try taking the LookAt function off of the text and rotating your camera manually. You could also try making a new GameObject, putting the text in the GameObject and setting all its rotations to zero, and then putting LookAt function on the GameObject. If that doesn't do it, someone else cleverer than I will have to answer. Good luck.

~ Elliot Bonneville

Comment
Add comment · 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
0

Answer by Loius · Oct 31, 2010 at 03:51 PM

Try LookAt-ing the opposite direction (instead of player.position - me.position, LookAt me.position - player.position)

Comment
Add comment · 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
0

Answer by GeorgeRigato · Aug 22, 2012 at 07:02 PM

Changing the X scale to -1 worked!

Sure its annoying simple, but I never would come up with this solution by myself.

Comment
Add comment · 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
0

Answer by Blenderik · Jul 20, 2020 at 05:26 PM

I really dislike neg. scale. This seems so profoundly stupid to me. Just make transform.forward the actual forward, Unity! I now rotate it 180° in local space y. You could also use a parent object, however: IT SHOULD NOT BE LIKE THIS!

Comment
Add comment · 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

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Why does my camera automatically flip when trying to follow object around X-axis? 0 Answers

Fixing the rotation around a particular axis using Quaternions? 2 Answers

Quaternion.Lerp is not working ,causing weird rotations 0 Answers

How do I make a 2D sprite smoothly rotate upright? 1 Answer

rotations smooth in scene view but not game view 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