- Home /
How to calculate the point at which two lines meet?
So I'm making a procedural mesh which should always have the same width no matter the angle or direction of the corners in it. In order to ensure the width is consistent the middle (lowest) point has to reposition itself relative to the angle of the shape. Does anyone have any suggestions as to how this should be calculated, assuming all corners in this illustration have a point in space.
I'm sure the solution is simple, any help would be greatly appreciated :)
Answer by tormentoarmagedoom · May 08, 2018 at 02:56 PM
Good day. Its basic trigonometry solution
If you imagine this triangle, you know 3 elements, so you can calculate the other 3.
I will not calculate them now... :D
Maybe there is another solution using colliders or something...
Thank you very much! I knew it was something simple :D