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"

Can you Enable Root Motion from "Play Animation" Node?

Hi, Very quickly I was wondering if there was a possible way to enable/play a Root Motion animation with the "Play Animation" node.

I am basically doing collision checks in my PlayerCharacter and was playing animations like so: alt text

However, it would just play the animation on the spot without applying the root motion movement.Basically ignoring that there is any movement in the animation.

I have looked for Root Motion Nodes but none seem to be compatible (wrong direction).

So, as a test to make sure the root motion works within my AnimBlueprint I added it to the locomotion and instead of just using the Play Animation Node I instead got it to work with my event AnimBlueprint. By setting as attacked in my PlayerCharacter when I want it to play the animation, and then checking if that is true in the AnimBP.

alt text

Doing so works fine and the movement is applied. However, it will be a pain to go and add all my attacks I set up in my PlayerCharacter into the AnimBP.

So, using the "Play Animation" node or something like it in my PlayerCharacter, is it possible to make sure RootMotion is applied properly without using the AnimBP?

Thanks!

Note: I am not lazy not to do this, I am just sure there must be a way. It will save a lot of time and will be something handy to learn for future reference.

If there is no way, let me know also of course.

Product Version: UE 4.12
Tags:
more ▼

asked Jul 15 '16 at 02:36 AM in Blueprint Scripting

avatar image

ABkayCkay
5 2 6 8

avatar image ABkayCkay Jul 15 '16 at 12:32 PM

shameful bump

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

1 answer: sort voted first

Hey ABkayCkay,

Try using the Play Animation Montage node instead of the play animation, you'll have to create a AnimationMontage, and make sure the EnableRootmotion checkbox in the actual animation is checked. Also make sure that the AnimationBlueprint uses Rootmotion from montages only or Rootmotion from everything.

The last one is only usable if your entire character is using rootmotion in all animations which I think it is not, or you would not encounter this problem :)

Rootmotion docs: https://docs.unrealengine.com/latest/INT/Engine/Animation/RootMotion/index.html

Animation montage docs: https://docs.unrealengine.com/latest/INT/Engine/Animation/AnimMontage/

In your character BP:

The animation:

In the Animation Blueprint:

Hope this helps :)

Elias

rootmotion1.jpg (44.2 kB)
rootmotion3.jpg (53.8 kB)
rootmotion2.jpg (27.8 kB)
more ▼

answered Jul 15 '16 at 01:30 PM

avatar image

PasteDog
1.2k 24 18 53

(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