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 jaybennett · Mar 19, 2013 at 07:14 PM · rotationtransformparentpivot

Fixing pivot points with second gameObject workaround

I'm working on a simple tower defense game, here is the problem that I sent to the artist:

http://imgur.com/C8pX1SA

Without fixing this, I can't create a working tower because the turret won't rotate properly. Unfortunately, we are finding that Unity resets the pivots to the center of the object on import, even if the pivots are set up correctly in Maya.

My first workaround attempt was to follow this video: https://www.youtube.com/watch?v=6MjDv6pClN0

But in the editor things are not working out nicely. I'm trying to parent the turret object (not including the base) to an empty game object to use as a new pivot, but when I do this the new game object assumes the pivot of the child?!?! Even though the transform says 0, 0, 0 its not at 0, 0 , 0 but at the same place as the pivot from the child turret object (I tested with a new empty game object at actual 0). When I do the parenting, I can actually watch the empty game object pivot change.. this seems so backwards I can't believe it. This doesn't make any sense!! Do I have a cursed .obj?? Please help!

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 Tasty Risotto · Mar 27, 2013 at 02:10 AM 0
Share

alt text

Did you change it to CENTER?

2013327-100646.jpg (9.3 kB)

1 Reply

· Add your reply
  • Sort: 
avatar image
3

Answer by TheCodeTroll · Mar 27, 2013 at 02:07 AM

Are you using center mode, not pivot mode?

next to the movement/translate/rotate buttons at the top, there are toggles for:

Pivot / center mode, and world/local position mode. If you have parented the game object and its still taking the mesh pivot, I can only assume that it is in center mode, not 'pivot' center takes the centroid of all of the collider/mesh verts As far as I know. So try hitting "Z" or toggling the button up top and see if that helps! :)

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

12 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

Related Questions

Adding child repositions parent tranform 1 Answer

Problem retrieving transform.position after parent rotation 1 Answer

Moving objects together without parenting 5 Answers

Camera follow ball along cylinder 1 Answer

Moving child transform also moves parent rigidbody 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