movement of the object in polygon

hello

I want to know how to make movement of the triangle around the polygon.I’m the beginner so can anyone tell in detail…

thanks