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"

Root Motion works fine in preview, but not in game

Hi everyone, Im testing root motion on one of my animation by doing the following: - On the animation sequence, "Enable RootMotion" is on - On my animation BP which is assigned to my player BP, root motion mode is set to "Root Motion from Everything" - My animation sequence is directly linked to the final animation pose in my animation BP

Now when I preview the animation with "process root motion" turned on, either in the animation sequence or in the animation blueprint, it works like expected. The model starts moving according to the animation, and in this case the root motion is set to apply a downward movement, so the model goes down infinitely and does not snap back to the origin. There's also the red link between the origin and the model. [1]: http://prntscr.com/hc1ihw

However in game, the animation plays "on itself" without moving, like it would if "process root motion" is turned off in the animation preview. The character model stands in the same place, the capsule collision stands in the same place, and so obviously root motion is not working.

On the character model, the capsule component collision is disabled. On the character movement component, Default Movement mode is set to "Flying". "Gravity scale" is set to 0. "Allow physics rotation during anim Root Motion" is on & "run physics with no controller" is on.

Anyone have an idea of what I'm doing wrong? I've been trying to fix this issue the past few days, without any success.

Product Version: UE 4.17
Tags:
more ▼

asked Nov 18 '17 at 12:03 PM in Using UE4

avatar image

Agua_Do_Mar
1 2 3

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

1 answer: sort voted first

Okay so I've managed to fix it. The problem was that I wasn't using the inherited skeletal mesh component in my character blueprint, I was instead using an other custom skeletal mesh component.

Apparently the characterMovement component only applies root motion to the inherited mesh that comes with the base character blueprint class

more ▼

answered Nov 19 '17 at 11:57 AM

avatar image

Agua_Do_Mar
1 2 3

(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