You get the right vector and the velocity vector of the actor then calculate their dot product. It would give you the sideways velocity with positive values indicating speed to right and negatives indicating speed to left.
1 Like