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 adjust move speed when using MoveToLocation

I made an actor based on DefaultPawn for using navigation. So, i tried to move an actor by MoveToLocation. It seemed worked well apparently. But the problem is that It moved too fast. It just moved a long distance in the link of an eye.

I adjusted max speed, acceleration of FloatingPawnMoveComponent, but not worked.

What should I do ? thanks.

Product Version: Not Selected
more ▼

asked Aug 27 '14 at 09:30 AM in Using UE4

avatar image

91 6 13 24

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

2 answers: sort voted first

After a bit of research I was able to find this post: https://answers.unrealengine.com/questions/52990/how-to-make-a-simple-patrolling-super-mario-enemya.html

As stated by MieszkoZ (near the bottom of the page), the MoveToLocation node makes a request to move and then finishes instantly. Depending on how your actor is being used you could try using a SimpleMoveToLocation node or an AI MoveTo node.

more ▼

answered Aug 27 '14 at 07:34 PM

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

Hello Varioov-

An easy way to get a smooth movement for your object would be to use a timeline and linear interpolate(LERP) node. This allows you to set how far the actor moves over a given length of time. You can then use the output from the LERP to power a "Set Relative Location" node to move the actor.


Doug Wilson

more ▼

answered Aug 27 '14 at 03:51 PM

avatar image Varioov Aug 27 '14 at 04:30 PM

I know what you're saying but the point is slightly different. I'm not talking about moving smoothly. I want to use movetolocation method of aicontroller for pathfollowing movement. But when I called that function the pawn moved to the goal position in an instant.

(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