This one is attached to the player, if such an ability is even desired (e. g. Mario cannot jump down, so no need there). It's just a proof of concept and it would probably need more refinement to implement it into a proper control scheme. Also the moving platforms MUST have a special layer for this and the collision under Edit-> Project Setting-> Physics must be deactivated for these layers.



Messing with layers is only necessary if the player is supposed to be able to jump down.

Click to expand...