• 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 /
  • Help Room /
avatar image
Question by TKDHayk · May 23, 2016 at 06:12 PM · unity 5movementvariablecontroller

First person controls for GoogleCardboard

Hi guys,

Im trying to make the FPS controller from standard assets work with google's VR SDK. by making google VR SDK's "GVR main" prefab a child of the FPS controller and removing the camera and audio listener components from the FPS controller, this actually works quite well, allowing me to move and look independently. However, for my game I prefer a set up in which my head movement causes the FPS controller to rotate, so hat forward movement on the gamepad will always correspond to the direction my head is facing. To achieve this, it is common sense to make the FPS controller a child of the GVR main prefab, rather than the other way around. However, this causes some problems. When I set the FPS controller as a child of GVR main, controls break. the FPS controller can no longer move, because it is stuck to the GVR component. Im sure the solution is simple and ill probably figure it out soon, but just wanted to throw this out there as a resource for myself and other people experiencing the same issue, If you have any ideas, please let me know. Thanks!

edit: I noticed that included int he Google SDK, there is a GVR adapted prefab as well as a GVR Main prefab. What exactly is the difference?

Hayk

Comment
sristy-cse

People who like this

1 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 KENNYBERG · Jun 25, 2016 at 12:46 PM 0
Share

I too am sooo stuck with this with virtually zero help anywhere on the internet

avatar image KENNYBERG · Jun 25, 2016 at 12:55 PM 0
Share

also I tried your method just to even move the camera with "w.a.s.d" and it doesn't move at all can you tell me if you are able to move "walk" in any direction with said keys and still regain the head tilt and 360 head turning with alt and ctrl?

2 Replies

  • Sort: 
avatar image

Answer by lordnurr · Nov 17, 2016 at 10:18 PM

follow the tutorial here xD

https://omniversegames.wordpress.com/2016/02/11/how-to-add-a-first-person-controller-to-google-cardboard-prefab-unity-engine/

it's works for me xD

Comment
sristy-cse

People who like this

1 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 ankurgecr · Apr 26, 2017 at 09:12 PM 0
Share

It seems that link is expired. Can you pls update?

avatar image

Answer by TarunL · Aug 08, 2016 at 08:42 AM

I tried making my player the child of GvrMain/Head. This works perfectly well and my player shoots in the direction it looks. The direction is now controlled through my head movement. But here I get an issue, once I look up, my player gets off screen. Don't know why its not replicating the position of GvrHead at this point.

Any help is highly appreciated

Comment

People who like this

0 Show 0 · 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

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

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

Related Questions

Control Air movement with character controller 0 Answers

controls 3 d ball for mobile 0 Answers

explain me the script 0 Answers

2D animation transitions and unexpected position changes 2 Answers

Implementing a "flyer" game in with the old CardBoard Google sdk 2 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