How to create a footprint system in 2D

your pawn can line trace down to get the ground, use a physical material to determine the color and spawn at the hit location