I'd like to give slopes in my editor's 3D Mode another try, but I will only add it when done properly. I sloped some sectors and looked at their behaviour, but I dont understand behaviour of sloped, weird shaped sectors. Yet, I want mine to look exactly as they would in ZDoom. Could you give me the mathematics to calculate the Z height for any vertex of the sloped sector? Like a formula or logics that I can apply to each of the sloped sector's vertex and it will look exactly like what ZDoom would do?
So far, this is what I figured:
Find a vertex of the sloped sector which is farthest away from the slope line (imaginary unlimited line). At this vertex's coordinates the sector will have its original Z height and at the two vertices on the slope line the sector will have the height of the sector at the other side of the line.
..but now for the math that must be applied to each sector vertex
Thanks!