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"

VR Camera Orientation

In my game when I click play the camera does not face the way I want it to, what do I need to do to set my camera to always face a specific axis. For example I want my camera to always look forwards so the player knows where they are but based on where in the real world I have my VR rotated that's where it will be facing when I press play

Product Version: UE 4.17
Tags:
more ▼

asked Apr 05 '18 at 12:08 PM in Blueprint Scripting

avatar image

Panos98
46 5 12 10

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

2 answers: sort voted first

In VR, the camera will be where the player is looking, and so the forward axis is the direction your head is facing and it is not recommended to try and actually move the camera itself. Instead, like Velrin mentioned, you want the camera attached to another object, usually a Pawn or Character.

You can then rotate the Pawn to face a set direction (Towards your camera or VR forward direction) which because the camera is attached, will also rotate that but still allow your head movement to be seperate.

more ▼

answered Apr 05 '18 at 01:31 PM

avatar image

Dune
1.9k 53 40 200

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

This might give you want you're looking for.

https://docs.unrealengine.com/en-US/Platforms/SteamVR/HowTo/SeatedCamera

Generally you want to create a pawn and attach a VR Camera to the pawn. If this doesn't work for you create a VR template project and take a look at how the camera is set up in the project.

more ▼

answered Apr 05 '18 at 12:18 PM

avatar image

Velrin
375 2 10 13

(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