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"

How do I make a pawn fly in the direction of the motion controllers?

I'm trying to make the player's pawn move in the direction that they point, but I'm not sure what functions to use. I'm not sure how to target the pawn, or how to specify the force and direction.

Product Version: UE 4.21
Tags:
more ▼

asked Jan 25 '19 at 08:06 AM in VR

avatar image

thack-o
1 1

avatar image KeepTruckin Jan 29 '19 at 11:27 PM

Are the hands attached to the pawn? If it is based on the pawn from the ue4 templates it will. If so you can target the pawn by getting the parent. Alternatively you can do,l get player pawn and cast that to your own pawn. For the force, it depends on what movement you want. Are you looking to advance in one direction at a constant rate? For direction, add an arrow component to your hand blueprint and get its forward direction.

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

1 answer: sort voted first

You should check out my YouTube tutorial here: https://www.youtube.com/watch?v=lpDIYd6EEAs

It shows how to move the pawn with hand activated controls. You can easily adapt it to your case, following one of the hands to move the pawn in that direction.

more ▼

answered Feb 08 '19 at 12:35 PM

avatar image

vr_marco
2.2k 10 6 12

(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