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. 

Animation not played completely when root motion on


I have a little problem with my character when trying to make it turns back. I currently have a non looping turning back animation with root motion enabled. This anim is controlled in the anim BP state machine and is launched when the character IsRotating var is true.

The issue is to know when the animation is completed.

I tried to use an anim notify at the last frame of the anim which fire an event setting back to False characterIsRotating var and so exiting the turn back animation. It works but the animation stops before it actually ends, having the character not totally 180° rotated whereas it should be. I tried an alternative way, by using a Get Relevant Anim Time Remaining <= 0 to exit the anim sate but again, it stops the animation too early.

Any idea how to detect accurately when an animation ends?

UPDATE: seems the root motion option cause the issue, when off the animation is played completely. The question is now how to get the animation plays completely when using root motion.

Product Version: UE 4.10
more ▼

asked Nov 30 '15 at 01:47 PM in Blueprint Scripting

avatar image

66 5 6 13

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

2 answers: sort voted first

Ok the issues is caused by the blending. When I set the blend time to 0 in the transition rules, the animation is played completely even with root motion On. So I guess if I still want my animation to blend, I have to add a little extra time in the anim before and after rotating the root bone so the blend will not affect the rotation movement.

more ▼

answered Dec 01 '15 at 11:18 AM

avatar image

66 5 6 13

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

im doing this differently but it might help you. If you're using montages which I am, you can get current montage and then get length.

So whenever I set a var in my CharBP to true which I know will carry over to my AnimBP and start a montage, I get the montage play length in the charBP and set a timer for that length which sets the variable that played the montage to false after that amount of time. ending the root motion anim after its done playting.

more ▼

answered Nov 30 '15 at 09:14 PM

avatar image

654 38 37 70

avatar image LimasseFive Dec 01 '15 at 10:40 AM

I tried with a delay, to wait a bit when the notify triggers the event then set false the rotating variable, but the anim still doesn't play until the end.

I notice the animation play completely when the root motion is off, so the issue is not how to detect when the anim end. The issue is the root motion option which seems somehow to stop the animation before it should.

avatar image thankstipscom Dec 01 '15 at 10:46 AM

you have the root motion enabled in the animBP?

avatar image LimasseFive Dec 01 '15 at 11:01 AM

Yes, it's set to Root motion for everything.

(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