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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Smooth a character movement

Hello,

To get my AI randomly walking around I use the Get Random Point in Navigable Radius. My problem is that the mesh goes to the random location instantly, without rotating. I would like to make fix this, but I don't know how. Here is a quick video to show you guys what is my problem :

https://youtu.be/JGBHfO8b_0I

Can you guys help me to fix this ? I'm quite new to UE.

Product Version: UE 4.10
Tags:
more ▼

asked Feb 26 '16 at 11:28 AM in Blueprint Scripting

avatar image

Spinker
34 6 6 9

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

1 answer: sort voted first

There is a face rotation node in the behavior tree editor put in sequence face rotation then preform the movement.

more ▼

answered Feb 26 '16 at 11:44 AM

avatar image

lion032
986 31 80 55

avatar image Spinker Feb 26 '16 at 11:58 AM

You ROCK ! thanks dude !

avatar image Spinker Feb 26 '16 at 12:41 PM

As I already have blueprint movement in my AI blueprint, can I still use a behavior tree ? I watched some tutorials on how to use BT, but they all seem to create new movement system instead of using the one already created in the blueprint. :/

avatar image lion032 Feb 26 '16 at 12:48 PM

Totally forgot about way simpler way, check if OrientRotationToMovement is ticked, if not tick it and control the rotation rate with the rotation rate variable.

avatar image Spinker Feb 26 '16 at 12:56 PM

Yeah. You must be right, but actually I have no idea how to use a BT. This is quite new for me and the BT isn't that simply to use since it requests an AI controler :/ Do you have any idea how I could make this very simply ?

avatar image lion032 Feb 26 '16 at 01:46 PM

this variable is a member of the character movement component, open your character bp, select the movement component and search for this variable in the defaults menu.

avatar image Spinker Feb 26 '16 at 02:20 PM

Are you talking about this ? alt text

I'm trying to play with it, but it does not seem to do anything :(

avatar image Spinker Feb 26 '16 at 07:33 PM

Figured it out. Here is a copy/paste from the the official tutorial :

To get your AI character to rotate based on movement enter the BasicAICharacter>Defaults tab. Find Use Controller Rotation Yaw and set this to false. Open the Components tab and find the Character Movement. Find Orient Rotation to Movement and set it to true.

(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