Editing points of a polygon

Hey, I’m not sure if this is actually possible and if I went about the right way of doing so. I’m making a piece of ground that moves up and down, but I want a slope on each side and a flat part on the top, by moving the top up and down it should also move/change the gradient of the slopes, I tried to use body:vertex(I,x,y) but this didnt seem to work, after all i tried every vertex point and it didnt change the collision, who knows of a better way? If possible. thank you.

Works great, much thanks John.

.@John has created something that does exactly this. I’ll ask him if he has the code somewhere.

Thanks this concept is sort of what the game is based on so it would help alot.


Here’s an example of an edible polygon with a seamless repeating texture: