I made a character with 3 CollisionShape2D ( "head", "body", "legs" ) and made it can jump through an one way collision platform.
As long as the player pass the platform entirely there are no problems.
But if the character stop jumping while it hasn't step over the platform with its legs, it will fall and get stuck when its body or head CollisionShape2D touch it.
How can I solve this?
The image below show the character's CollisionShape2D

Also, the platform is a StaticBody2D which is in the second layer only, while other StaticBody2D are in the first one and the character's mask is in both. I haven't found a way to set the head and body to be in the first mask only.