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
0
Question by T_Trojan · Jan 28, 2011 at 07:26 PM · meshpivotorigin

How do I change an Object's Origin / Pivot Point >?

Hi, I only have the imported models, and their origins, rotation/transformation points are off the mesh. So when in game I instantiate them, they spawn off center.

Is there a way to move the origin point?

I have tried making an empty object and then making the other one a child with respect to that, it works for positioning but I have raycasting so it doesn't detect the mesh anymore....

I would really like to know if this can be done in unity since, the models that I get are rather small, so even if they were properly centered in their original 3D program, once I scale it up, it may screw up again.

Thanks in advance.

Comment
Add comment · Show 5
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 Jessy · Jan 28, 2011 at 07:57 PM 0
Share

http://answers.unity3d.com/questions/142/changing-the-pivot-point-of-meshes

avatar image Jason B · Jan 28, 2011 at 09:58 PM 0
Share

No matter how small your objects are, if they're centered in your modeling app, they will be centered properly when you import them. Unity doesn't play with your pivot points as far as I know, even when you scale up your objects. Don't center them by hand because eyeballing it won't do. $$anonymous$$ost modeling apps (I use Lightwave) have a simple "Center" button that will automatically put the mesh in the absolute center of 3D space. I have a sphere in my game that grows, and as it grows, its pivot point remains perfectly centered, so I'm guessing it's a problem with your model's centering.

avatar image Myth · Jan 30, 2011 at 02:24 PM 0
Share

Do you actually have a 3d app or are you getting these models from someone/where else? and what format are the models in?

avatar image T_Trojan · Feb 01, 2011 at 04:31 PM 0
Share

Yeah fixed it by using the original program. Reparenting doesn't quite work with my colliders, thats why I avoided using it.

avatar image T_Trojan · Feb 01, 2011 at 04:32 PM 0
Share

In any case, thanks guys.

2 Replies

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

Answer by kennypu · Jan 28, 2011 at 09:10 PM

i believe you just position the model at the origin in the modeller. so after you're done modelling, set the position to 0,0,0 and export it to 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 teomaragakis · Apr 17, 2014 at 02:41 PM 0
Share

That happens only if the object is flat (0 in the Y axis). If it has a Y value, with a Y position of 0, the middle of the object is on the Y axis.

avatar image
0

Answer by Myth · Jan 29, 2011 at 01:17 AM

have you tried adding a collider to the empty object? - this wont be as accurate for collisions but is a possible solution

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

1 Person is following this question.

avatar image

Related Questions

Instantiating an object via its center (as opposed to its pivot point) 2 Answers

Plane pivot point creating 0 Answers

I would like to calculate the rotation from a generated mesh (kind of the normal but also not) 0 Answers

Move from center and not pivot. 1 Answer

Can I offset a mesh's transform? 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