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
1
Question by Artgoblin · Aug 29, 2010 at 01:52 PM · rotationtransformposition

why is my object's rotation affecting it's position?

Hi, I just recently started playing around with Unity3D and am loving it so far. I come from an 3D Illustration and VFX background so I'm quick to get used to Unity's interface and functions. But one weird thing I noticed while trying to write a simple script for rotating my camera around a target/null (an empty game object that is the parent of the main camera (kindof using them the same way I use Null objects in Lightwave). Anyways... I noticed that when rotating on the X axis, the null/parent object was also sliding it's position, thus kindof ruining the effect I was going for. On further examination I found out that even without any components and scripts except for the transform component it, I noticed that when tweaking the rotation value in the inspector panel, I could see is sliding in the scene-view (but inspector showed no change in the translate values). Then again if I use the rotate tool (clicking and dragging tha handles in scene-view) the object stayed in place and only rotated around itself, but in the inspector panel I could see it adding positional values like it was interactively fixing itself in place.

I'm thinking there must be a logical reason why this is happening, but as it is I just can't see what I'm doing wrong, can anyone explain what I'm doing/thinking wrong?

cheers. Artgoblin

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 Artgoblin · Aug 29, 2010 at 02:17 PM 0
Share

ok... tried creating a brand new box from unity and this rotation/position relation isn't wierd on the box. But when rotating an externally created house object this is still a problem

avatar image Artgoblin · Aug 29, 2010 at 02:32 PM 0
Share

seems to be a problem with the imported mesh, wich is in *.obj format

1 Reply

· Add your reply
  • Sort: 
avatar image
5

Answer by jtbentley · Aug 30, 2010 at 02:59 PM

The object's pivot point is off center from where you think it is.

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 motion art game · Apr 09, 2016 at 09:09 AM 0
Share

You made $$anonymous$$y day . Thanks a lot.

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

Floating-point errors while assigning transforms 1 Answer

postion scale and rotation greyed out and not working 1 Answer

transform position and rotation of instantiated object 1 Answer

An Efficient Way To Follow Transform's Position? 3 Answers

Following another object's position/rotation like parent/child relationship? 4 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