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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to move character from point A to B in steady movement and speed? (GearVR)


I am building for GearVR with blueprints, and trying to emulate the locomotion solution that is used in Land's End. Here is a gameplay video of what I'm aiming at: https://www.youtube.com/watch?v=lc3xlG_KR-k

So, this should be simple: the user looks at the direction of a 'point' in the scene, this triggers it (with a delay of aprox 2 seconds), then the Character slowly and steadily moves to that direction.

What I am trying so far is this: The Hit Actor of the Line Trace from the HMD goes to a Switch on Name node, which then sets the vector variable NextPosition according to the name of the 'point' the user is looking at. This flows into a Timeline which updates the Character location with a SetActorLocation node, as seen in the following screen:

alt text

Timeline: alt text

This is working, the Character does move to the provided position, but the movement is not steady. Also, the speed the character moves is not predictable, sometimes it will move slowly, other times really fast, I think it depends on the distance between the character and the point the user is looking at.

What I need is steady movement and steady speed, no matter the distance between point A and B. How can I achieve this?

On the other hand, how would I apply a delay from the moment the user looks at the point and the character starts moving? (please see the above video which shows exactly what I'm striving for)

Thank for your help! Cheers

Product Version: UE 4.10
capture.png (328.4 kB)
capture02.png (42.9 kB)
more ▼

asked Mar 24 '16 at 09:39 PM in VR

avatar image

22 5 5 7

avatar image BrUnO XaVIeR Mar 25 '16 at 01:14 AM

Remove Timeline and use a VInterpTo function (attached to a Tick or Timeline looping):


Pen attention to the Delta Time input; if using a Tick you can simply pin the Tick's delta to it.

avatar image elTomkinson Mar 25 '16 at 04:10 PM

Is this what you mean?:

alt text

I actually removed the Lerp function (instead of the Timeline as you suggested), and replace it with the VInterpTo function. I wouldn't know where to place it otherwise.

Not sure if I understood correctly.. Thanks!

capture03.png (319.3 kB)
avatar image BrUnO XaVIeR Mar 26 '16 at 07:47 PM

No, use either a tick event or a timeline to update the VInterpTo; you dont have to use both.

avatar image elTomkinson Apr 02 '16 at 11:02 PM

Thanks, this worked!

It is not a steady speed (it slows down a bit near the end of the movement) BUT I don't really care, it feels smooth.

This is how it looks now: alt text

capture.png (252.6 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
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