Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 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 toxicfrog · Nov 21, 2015 at 12:34 AM · vrchildcamera rotateorientation

Cardboard: How to get Head / Camera to inherit rotation from parent object?

I am porting my Oculus game to Cardboard, and have one final problem to solve:

The player is in a flying chair. The player moves through the world by gazing on specific objects. When moving, the chair orients to the direction of travel.

The Cardboard Head node is a child of the chair.

On the Oculus, the camera's orientation is always relative to the chair.

But, on the Cardboard, it is not inheriting the rotation from the chair. For example, when the chair turns 90 degrees left, the player in the virtual world remains facing in the same direction as he is in the physical world. I need the player in the virtual world to always be aligned with the chair he's flying on.

In other words, I need the Cardboard camera's 'Forward' to always be relative to the chair's 'Forward'.

I've tried using a target object in the Cardboard Head object, but no luck.

I'd appreciate any advice, and will reply with results.

Thanks!

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by toxicfrog · Nov 24, 2015 at 12:09 PM

Solved! I put the top node of the chair in the 'target' slot on the Head script. I swear I tried this before, but apparently I imagined it... So, it's working as intended now

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 toxicfrog · Nov 24, 2015 at 09:54 PM 0
Share

I thought I'd solved it, but nope... It's still happening. Any advice? I've tried everything I can think of.

The Cardboard $$anonymous$$ain and Head are following the Chair's position, but they don't rotate correctly so that 'Forward' is always facing forward in the chair. It seems to rotate part of the way, but does not keep a perfect orientation with the chair, so it gets worse with every turn, until eventually 'Forward' is literally 90 degrees off (or more).

I appreciate any suggestions!

avatar image rodrigozol · May 03 at 08:45 PM 0
Share

Same problem at last Cardboard sdk!

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

GearVR current viewing angle 0 Answers

VR Camera rotating/orbiting far away from its origin point 0 Answers

Swapping VR axis of rotation 0 Answers

Switching VR Camera's = double initial Rotation value 0 Answers

VR camera position instant flick 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