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"

Character change direction smoothly


I'm making a game where I want the movement to be smooth. I want to be able to play with a gamepad, have it so that if I'm running forward and press backwards, the character instantly turns (for some reason in UE4 Thirdperson the character takes a while to turn, several units and this makes a platform game less than optimal). But if I run forward and start going left or right its still a smooth curve of a turn. If I max the Rotation Rate of my character blueprint, it gets all static and the character will basically only run in 4-8 directions. It gets too choppy and I've tried several different methods but I can't seem to figure out how to register if I am clicking in the opposite direction or less. Having a smooth transition here would be nice, as in rotation rate increasing or lowering depending on how far from forward direction I'm clicking/turning the gamepad.

Any Idea how I could achieve this? Any help would be WILDLY appreciated!

Product Version: UE 4.21
more ▼

asked Apr 02 '19 at 01:22 AM in Blueprint Scripting

avatar image

3 1 2 2

avatar image GarettHunter Apr 02 '19 at 03:14 AM

Does increasing/decreasing the "Max Acceleration" in the CharacterMovement component help a little?

avatar image Animism Apr 02 '19 at 05:42 PM

This does make it so that if I turn the character turns around before he starts moving forward. That is half the job done, I need the character to be responsive and switch to a direction instantly, both in speed and rotation. I just want to be able to do it without having choppy movement :)

avatar image aNorthStar Apr 03 '19 at 01:30 AM

smooth and fluid often needs to balanced against fast and choppy.. if you are using Interp/Lerp, increase the speed to increase responsiveness

also smooth the camera movement, this adds to any choppy appearance

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

1 answer: sort voted first

Have you looked into using LERP rotator?

more ▼

answered Apr 02 '19 at 02:38 AM

avatar image

Nebula Games Inc
5.4k 28 9 15

avatar image aNorthStar Apr 02 '19 at 09:02 AM

I'd also consider the Rinterp BP node (rotator interpolation). Maybe heck out Matthew Wadstein's or others videos on youtube for how to use RLERP and RINTERP

avatar image Nebula Games Inc Apr 02 '19 at 01:15 PM

Yea that would work too.

avatar image Animism Apr 02 '19 at 05:40 PM

This could work for sure! I'm thinking if I set current rot to be my character. And the target rot to be where I want my character to turn. How do I input where I am trying to rot my character? Not sure how I could get the input info from where my controller is telling the character to go next.

avatar image aNorthStar Apr 03 '19 at 01:28 AM

yes, I think you've got the right idea... this is fairly straightforward, you can just google and youtube search and you'll see how it's done...

(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