eldv
Junior vMember
Posts: 47
|
Post by eldv on Aug 19, 2020 17:01:43 GMT
Hi everybody,
I love the Invector Third Person Controllers, but one problem that has plagued me is when trying to use the random idle feature, the animations would get stuck playing even when the character began moving again, and would do so only when the animation completed. It wouldn't happen every time, but enough to where I would have to disable the feature. This bummed me out because I wanted to have the random at idle to add a little more life and realism to my player character. I had butted my head against this particular wall for hours, trying different transition state combinations, to no avail.
Thankfully though, after taking several weeks off from it, I decided to give it another try. And it seems, to my delight, that I figured it out.
It seems there is a transition missing from the transition to exit states in the animator. There is a transition exit: for when there is Horizontal movement, and a transition state for when the idle animation ends and goes on to the next animation. Finally after giving it some thought, I added a third transition for VERTICAL movement and unticked Has Exit Time and set the vertical movement to greater than .1. AND IT WORKED! All the animation break when there is any movement applied to the player character. It now seems completely logical that was the fix, and while this might seem particularly simple for more seasoned developers, I am really neither so it was a big win for me!
I thought I would post this in case anyone else was having issues with this feature, and like me, was in desperate need of a solution.
|
|
jepoy
New vMember
Posts: 10
|
Post by jepoy on Apr 9, 2024 2:09:47 GMT
Great! This works for me. So this is how it is. There should be 3 exit transitions/variations:
Conditions:
Input Vertical > 0.1 (has exit time: unchecked) Input Horizontal > 0.1 (has exit time: unchecked) Input Magnitude > 0.1 (has exit time: checked)
|
|