I never thought about that, in unity at least, I would make two layers, one where the player walks and one for the enemy, then it would not be affected, i did not test it tho
Of course, that would make sense. I'll have to test it out, thanks!