I’m making a 2D game where the player climbs a mountain. I have one plane that’s the mountain, and an identical plane who’s texture is a black track that denotes where the player can move.

How do I make it such that the player can only move on the black portion?