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"

Is there a built in function to move an Actor to a vector? Not teleporting it.

Hey, i'm just wondering if there is any in built functions that you can use to move and actor from one point in the level to another point in the level? I'm not talking about SetActorLocation which teleports the object to the point but smoothly moving to the location over a set amount of time. Or do you have to make something yourself using SetActorLocation?

Thanks.

Product Version: Not Selected
Tags:
more ▼

asked Mar 02 '15 at 11:42 AM in C++ Programming

avatar image

Solicio
200 54 53 64

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Yes, you can use the Lerp function, or any interpolation function in FMath for that matter.

 FMath::Lerp(startPos,endPos, alpha);

Here is the documentation page for FMath :

https://docs.unrealengine.com/latest/INT/API/Runtime/Core/Math/FMath/index.html

You can also use any other interpolation functions in there like:

 InterpEaseIn
 InterpEaseInOut
 InterpEaseOut
 InterpExpoIn
 InterpExpoInOut
 etc...


more ▼

answered Mar 02 '15 at 01:05 PM

avatar image

MickD777
2.1k 69 37 259

avatar image Solicio Mar 02 '15 at 01:29 PM

Ah, the one place i forgot to look. Thanks that will help!

(comments are locked)
10|2000 characters needed characters left
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