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"

Changing eye height in VR (Oculus)


This is my first post here :)

I've been using UE to make visualizations and in my latest project I'm using VR. My client had a presentation and was asking me to make possible for a person to change eye height while in VR.

I first made it with a very simple AddLocalOffset for the first person camera. It works great! Although I don't know how to limit the height it can go up or down, so if someone wants to play with it, it can go through the ceiling or the floor, haha. Kidding aside, I found out that this AddLocalOffset for the First Person Camera doesn't work in VR... it is so the person can have 15 increments to go down or up as much as they want, not a fixed position.

Does anyone know how to do it? It would really help.

Also, I'm an extreme noob with Blueprints and programing.

Thanks and have a great day,

Alex C.

Product Version: UE 4.17
more ▼

asked Oct 06 '17 at 01:01 PM in VR

avatar image

1 1 3 4

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

1 answer: sort voted first

Is this using the VR template? The camera is attached to a Pawn/Character in that project I believe, so moving the Pawn higher or lower will also set the height of the camera. However, in a first person template there is probably a capsule component that simulates physics with gravity, so raising the player up will work, however due to the physics simulation the player will drop down to the floor again?

more ▼

answered Oct 06 '17 at 01:19 PM

avatar image

1.9k 53 40 200

avatar image AlexCom Oct 06 '17 at 02:02 PM

Thanks Dune!

This is using First Person Template. It's a bit weird that when I use the First Person Camera offset, it works normally but not in VR.

I wanted to do something with the actual character, remove gravity then just move it up or down, but I have stairs in the building and that will not work.

avatar image Dune Oct 06 '17 at 03:09 PM

The camera in VR is relative to the players head I believe. This means that it is overwritten as a location each frame based on the tracking data. So I'm not sure whether directly changing the Location/Rotation of the actual camera will have any effect, as it will be overwritten by the tracking data?

You may want to look at only moving the actor/component that the Camera is attached too.

(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