Right now I try this
if ((Mathf.Abs(velocity2D.x) > 0.5) || (Mathf.Abs(velocity2D.y) > 0.5))
,
but not sure if this is the correct one.
The goal is to set a moving animation, which I do with
animator.SetBool("moving", true);
and then handle this property in the Animator component
I’d recommend velocity2D.magnitude > 0.5
or something similar.