0
\$\begingroup\$

So I've got the animation, it has root motion but activating it in the settings doesn't seem to do much.

enter image description here

What would be a good optimized way to have the character sit on the stool with the animation matching the movement? Would I need to do it through code?And if that's the case, could I specify in which frame do the movement? Or add a second animation that is in charge of Root Motion?

I know either of these two options I give could work but I'm checking to see if there is a better way or if I'm missing something here.

Thanks!

EDIT: Following DMGregory's comment I disabled the collider to see if it improved... it did change, but it isn't much better:

enter image description here

EDIT 2: This is how the animation preview looks like (what I'm expecting)

enter image description here

Then I just hold the last frame while they're sitting and play the animation backwards for when they're getting off - this is just while I get it to work.

\$\endgroup\$
6
  • \$\begingroup\$ Do you have a collision shape around the counter/stools that's preventing the animation from placing the character onto them? It looks like the character bounces backward as they try to climb onto the stool. \$\endgroup\$
    – DMGregory
    Apr 26, 2020 at 23:50
  • \$\begingroup\$ @DMGregory yes I do, I tried without it and it's still not working as expected, I updated the original post with the gif of how this looks like \$\endgroup\$ Apr 27, 2020 at 0:02
  • \$\begingroup\$ Do you turn the collider back on at the end of the animation? \$\endgroup\$
    – DMGregory
    Apr 27, 2020 at 0:04
  • \$\begingroup\$ No, it was off the whole time \$\endgroup\$ Apr 27, 2020 at 0:05
  • \$\begingroup\$ Can you help us understand then what the source of the backwards motion we see here is? Is your character clipping the collider of the countertop now? Or is this slide offset present in your animations themselves (say, the hip bone is at a different position in the sitting-idle animation than it is at the end of the climb animation) \$\endgroup\$
    – DMGregory
    Apr 27, 2020 at 0:10

1 Answer 1

2
\$\begingroup\$

This video helped me a lot: https://youtu.be/7JEoG4xubP8?t=1319

So what I did was move the character through the script doing a lerp of translation and rotation and turning off all the root motion options EXCEPT in the Animation tool tip of the FBX, scrolling off to almost the end of it and under Motion set the Root Motion Node as <Root Transform>.

\$\endgroup\$
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .