Hey!

I have a triangle where two points have the same Z-Value and one has a different Value. Now I want to transform the point with the differenz Z-Value, so that it optically generates a “vertical” Triangle. Assuming point C is the one with the different height-Value, I somehow need to move the X and Y Coordinates of point C orthogonal to the Difference-Vector of A and B, until they vertically line up, eg the slope is exactly 90 degrees. But unfortunaly, I am a complete idiot concerning rotations and stuff. Could you give me any hints how to solve that? Preferably a rather quick calculation, because it has to be called up to 700000 times per player, per chunk load

Thanks in advance

Edit: Thats certainly NOT how to do it :rolleyes: