So I have different heights of floors (like stairs) and when I punch enemy, enemy is supposed to be moving backwards by a set speed for a second's duration. Problem is, when the enemy (while moving backwards after being punched) is overlapping a solid (floor object), the enemy "teleports" to another place.
I understand why it happens. Platform-behavior characters can't overlap solid objects.
I want to ask what is a possible way to prevent this? Thanks.