I've been having problems with my enemy's collision box (it needs one because it's a KinematicBody).
I want it so that the player will just pass straight through it when he's at the top of the enemy. Though the problem is that he will just stay on the enemy, like a moving platform.
It was probably because it's a rectangle, so I tried to change it to a RayShape2D. Though, the player just glitches when he reaches the enemy.
The player's collision shape is Rectangle2D.
I thought of using one way collision, though the problem is that it only detects top and bottom. Is there any way to fix the enemy collision shape so the player can pass through it when he's at the top?