#any idea why front and back animation is

1 messages · Page 1 of 1 (latest)

orchid condor
#

Could be that it's getting stuck blending between animations, how does the graph of the blend tree look when you're doing this?

cosmic pike
#

but i am logging the control values.. and based on those values.. it should properly play the animations

orchid condor
#

That doesn't really show what's happening, the red dot should be moving around

cosmic pike
#

yep exactly

orchid condor
#

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

cosmic pike
#

also.. why the control values is filled with garbag when i am not moving

#

like see the control values in blend tree

cosmic pike
#

so i swapped the co-ordinates of walking and idle.. the walking is still stuck hmm

orchid condor
#

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?

cosmic pike
#

even my graph changes like that.. just not live in play mode

orchid condor
#

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

cosmic pike
#

@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

cosmic pike
#

@orchid condor so i deleted the blend tree.. made same blend tree again and it's working now