How is it possible to make those clouds like in Bubble Gum Simulator where if you're flying up you wont hit the cloud and fall down but if your on top of the cloud you can walk on it.
I could think of a way and that is just detecting if the player touches it twice then make it CanCollide = true but that is extremely bad as what if they are falling down and touch it for the first time?
It's like if they touch the bottom of the cloud they can go right through it but if they touch the top they can walk on it.
I'm not asking for any code, just a basic explanation because I'm curious how those games made it.