x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[Google Cardboard] How do i make the user to move where he is looking?

Honestly i have no clue what do create/do. I have manage to get it functioning and port a VR test to my Galaxy S5 and work flawlessly. Now the next step in my development process is making it so you will move where you look. The hope is that it will allow the user to explore a building. I would rather they not float into space if they look up though. Its all funny because all i can find are people trying to do the opposite on the Rift.

Thanks in advance

Product Version: UE 4.12
Tags:
more ▼

asked Aug 19 '16 at 12:18 AM in VR

avatar image

Pattonsguy
26 2 3 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Hey Pattonsguy,

Depends on a few things:

  1. First of all are you using a premade character Pawn class, or you are about to create your own?

  2. Do you want them to be able to move contantly, or controlled somehow?

Well there are other things, but these might be the most important to start out. There is a Node called "Get Orientation and Position", that will give you your device rotation. Check if the Camera in your Pawn is Locked to HMD. After that you have a few options:

  1. If you just want to simply move forward, get the forward vector of your camera. (get)Camera>>Get Forward Vector

  2. Add Node of your Input Axis and connect it up to a Node "Add Movement Input" + the forward vector you got. (If your Pawn class derives from Character you can specify that the Character stays on ground otherwise you'll have to do the mechanics yourself. In case of no stairs only on one plain you could lock transform on one axis)

I hope this jump starts you a bit, if not, please specify more details. Cheers, K.

more ▼

answered Sep 14 '16 at 12:25 PM

avatar image

kornel.l.varga
71 5 13 19

avatar image kornel.l.varga Sep 14 '16 at 12:27 PM

alternatively you can also set relative/world position of your camera towards the direction your camera is facing, but that might just mess things up

avatar image Pattonsguy Sep 14 '16 at 06:22 PM

I believe using a character blueprint would be more efficient for the process. I plan for movement to be constant. I will check out the orientation node when i am at my workstation later.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hi Pattonsguy,

Check out this youtube tutorial "UE4 - Simple Teleportation Mechanic" https://www.youtube.com/watch?v=T6tYdWwLGZg

Should get you started really quick.

more ▼

answered Sep 14 '16 at 01:31 PM

avatar image

gelliott
283 7 8 18

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question