#any idea why front and back animation is
1 messages · Page 1 of 1 (latest)
Could be that it's getting stuck blending between animations, how does the graph of the blend tree look when you're doing this?
apparently my blend tree graph is not updating real time as per the animator
but i am logging the control values.. and based on those values.. it should properly play the animations
That doesn't really show what's happening, the red dot should be moving around
yep exactly
Might need to select your player in the hierarchy while in play mode, then go animator window and select the blend tree for it to actually show what's happening
also.. why the control values is filled with garbag when i am not moving
like see the control values in blend tree
also, i am sure it's not a graph problem, because if the red dot is stuck in between, then the animation should play in slow motion and not pause totally
so i swapped the co-ordinates of walking and idle.. the walking is still stuck hmm
Am more just curious to see your graph in action as what it's actually doing might give some insight to what's going wrong. Weird tho, when I make a similar setup and fiddle with the values it moves around ok
And what do you mean the control values filled with grabage?
even my graph changes like that.. just not live in play mode
Could be because your parameter values are not normalised, they go beyond 1 and -1
Looking at 1 point where the gliding happens the values are -7 and 0.7 which would put it up around the top left of your graph between 2 anims probably confusing the blending
Yeah looking again I'd say it's because input values can be between 2 of the animations that it should blend between, should be snapped to 1 of the anims
something like if input magnitude.x > 0.5 then X = 1 or if input magnitude.x < -0.5 then X=-1 and similar with Y
@orchid condor now that blend tree graph showing up..
my conclusion - animation is paused as long as the red dot is horizontally in the middle..
lemme add a code logic to make red dot never be in horizontally center position and see what happens
nvm.. even slight diversion from horizontal center doesnt work
@orchid condor so i deleted the blend tree.. made same blend tree again and it's working now