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 User Interface -- Attached to camera but with deliberate slight delay?

Hi all,

So I'm making a VR first person game using Blueprint and I'd like to have a 3D UMG widget component be attached to your camera, like a health bar always in your lower-left area.

However, I'd like the movement of the widget to be slightly delayed or "lagged" behind my HMD rotation. Basically I don't want it to be perfectly parented to my camera movement, that feels weird in VR, like it's "stuck" on my eyes or something.

An example of this would be how Robo Recall does it, see what I mean here: https://youtu.be/BRpvQcJ8hCw?t=9m53s The point widget near his guns is always in the same relative area on your screen space but it sort of lags very slightly in its movement when the player rotates his head around, makes it look more natural.

I tried using MoveComponentTo in Blueprint but it doesn't quite look right. Wasn't sure if there was a better way to approach this.

It's kind of a difficult question to phrase, so I didn't have much luck with my usual google-fu techniques. Sorry if my question is unclear, I can clarify if it's not easily understood.

Any help at all would be greatly appreciated!

Thank you.

Product Version: UE 4.14
Tags:
more ▼

asked May 24 '17 at 08:41 PM in VR

avatar image

mellowsoft
39 2 6 16

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

1 answer: sort voted first

Just in case someone finds this and wants to know how I resolved this...

I ended up getting this effect working by using a tick that records into an array the position vector of a null that is parented to your camera (and invisible) and in the position you would like it to be in.

Then, on the UI widget actor that you want to have a slight delay, on a tick setWorldLocation to the position vector that is 2-5 behind/up from the last index of the array. Basically it moves your UI widget where your camera was looking 2-5 frames ago, giving the UI a nice smooth animation that doesn't look weird.

And to make sure the array doesn't get too huge, once the array hits 20 elements I clear the first 15 entries or so.

There's probably a more efficient way to do this, but at least I got it working! :)

more ▼

answered Jun 06 '17 at 07:20 PM

avatar image

mellowsoft
39 2 6 16

(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