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 Navigatron · Jul 21, 2013 at 04:26 AM · rotationaxislocal axis

Is it possible to create a third Axis?

Currently, There are two axis. Global and Local. Is it possible to create a third axis, kind of like a hybrid of the first two? I am trying to place an object (Main Camera) At -10 On an objects Z axis. Global will ignore the Y rotation of the target, so if it rotates the camera could be facing the front! Not good. Local Uses the Y rotation, but it also uses X and Z rotation. The camera could end up above or below the target. I Doubt another axis would be possible... Does anyone have any advice on positioning things?

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 robertbu · Jul 21, 2013 at 05:27 AM 0
Share

I think you need to provide a much a clearer description of your goal here...perhaps include a drawing. I believe what you are asking about can be constructed using Transforms. But I doubt this will be the best solution for your problem.

avatar image IgorAherne · Jul 21, 2013 at 06:29 AM 0
Share

$$anonymous$$y brain exploded. Going to clean it up :>

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by manu3d · Jul 21, 2013 at 10:14 PM

First thing first. It might be useful to understand that there isn't really such thing as Global or Local. There is only "relative to something". In the case of "Global", relative is relative to the World's 0,0,0 position and the directions of its XYZ vectors. In the case of "Local" relative is relative to the position and the direction of the XYZ vectors of the parent of your object. In a sense, everything happens in local space, but in the case of "global" transformations the parent being used is the world.

In this context, adding a third "axis" or more precisely a third "coordinate system" (sometimes also called a "coordinate frame") merely requires that you add an extra parent between the parent of your object and the world.

For example, in the context of an orbiting camera one could use an immediate parent to rotate the camera on the X axis, to move it up/down around the target, while the parent of the parent (a so-called ancestor node) takes care of rotations around the Y axis, orbiting around the target.

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

17 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 avatar image avatar image avatar image avatar image avatar image

Related Questions

Smooth rotation about global axis instead of local axis. 1 Answer

different axis for different objects? 1 Answer

How can I rotate a vector direction around an arbitrary axis? 0 Answers

How can I fix the local axis of pivots from a purchased asset? 1 Answer

Maintain direction regardless of orientation (2) 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