[SOLVED] What triggers AnimStateGraph parameters to change?

I forked the example third person controller from PlayCanvas’ Manual page:

I added jumping logic, and I want to add a falling animation, but I can’t figure out what triggers a change in the parameters “xDirection” and “zDirection” in the AnimStateGraph. I see no mention of such parameters in any of the code.

cc @Elliott

Hi @ToldFable!

It’s on line 60 and 61 of the PlayerMovement script and takes values from the movement keys.

1 Like

Oh I see it now, thank you!
no idea how I missed that
I blame sleep deprivation

1 Like