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"

Vive Touchpad Movement with controller forward vector?


I'm trying to set up a movement system where the character is moved based on the input from the Vive motion-controller touch-pad, except the character then moves based on the forward vector of the controller, rather than in the world.

alt text

If I just make a vector from the thumb-stick values it moves relative to the world X & Y, I just can't seem to get it to work with the forward vector replacing the world's 'forward vector'. I know I need to either rotate it around something, or add the right values together but I can't work it out. Any Ideas?

Product Version: UE 4.13
more ▼

asked Sep 26 '16 at 05:21 PM in VR

avatar image

13 5 9 13

avatar image MarcinLas Sep 28 '16 at 05:11 PM

That is excatly sthing what I am looking for. Would like to smoohtly move VRPawn using trackpad on motion controller. Are you able to share all blueprint?

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

1 answer: sort voted first

well this seems to have worked...

well this seems to have worked...

Not quite sure why the x and y inputs are swapped but it works so I'm happy...

more ▼

answered Sep 26 '16 at 07:24 PM

avatar image

13 5 9 13

avatar image FestFisken Jan 24 '17 at 03:40 PM

Can i ask where you connected it to? I am using the VR template and dont really know in wich blueprint to manipulate to get the pawn to move. ( I am a noob btw)

avatar image Espii Jan 24 '17 at 06:18 PM

This is in a Pawn Blueprint. In the components tab there is a character movement component, which means the 'Add movement Input' Node (shown in the original question ^^) can be used, so the vector from the above 'rotate vector' component plugs into there. This is done off the event tick node, with a branch statement. When the player presses down on the controller it is set to true.

avatar image FestFisken Jan 30 '17 at 05:53 PM

Thanks for reply! (sry for being late). I got the forward vector to follow the controller rotation (see blueprint) but i cant seem to make any of the touchpads inputs register. I have sett them all up as input axis but nothing seems to be working. I can move fine with the facebuttons keyboard but i want to use the touchpad.
I havent worked with event tic nodes before do you need it to use inputs such as the touchpad?

[1]: /storage/temp/124214-skärmbild+(2).png

skärmbild (2).png (244.7 kB)
(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