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"

Move Character To New Location

I have a character in a level with hotspots placed around the scene. I have it set up through line tracing to click the hotspot to move my character to the location of the hotspot. Currently it just "teleports" my character there. But I want it to move in a straight line the spot. I don't care about collisions or anything. I believe there is some way to do it using vector math, and get the actor locations and add and multiply them, but I can't figure out the right formula. Does anyone have any ideas to help me?

Product Version: UE 4.14
Tags:
more ▼

asked Jan 03 '17 at 09:41 PM in Blueprint Scripting

avatar image

DMHokie
68 15 26 34

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

3 answers: sort voted first

Thanks for the tips. They led me to this tutorial. All I needed was the Move Component To node: https://www.youtube.com/watch?v=IflhNCQcPXQ&t=1s&list=PLZqtEyj6dkJN-52RvbYSNr2J-aD6nGzQU∈dex=8

more ▼

answered Jan 04 '17 at 10:36 PM

avatar image

DMHokie
68 15 26 34

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

If your character has the Character parent class, you could use Add Movement Input which uses the the vector difference between your source and destination. You can then apply that over each frame until you reach your location. You can adjust the Scale Value in order to change the speed at which the character moves.

more ▼

answered Jan 03 '17 at 10:38 PM

avatar image

RadiantWings
66 14 15 19

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

answered Jan 03 '17 at 10:33 PM

avatar image

Acheta Games
849 10 13 18

(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