How do I make an angle go to the right angle - Polygon Triangulation [Help wanted]

Hello developers!

i’m making some Polygon Triangulation system but i don’t know what is best way to make angle go into right angle

I want it to go in the right direction. I don’t want it to go out or change course.

image

i’m stuck with this issue for a days :face_with_spiral_eyes:

Thank you, who can help me

2 Likes

never mind i fix it

self.PleaseWork=function(A: BasePart, B: BasePart, C: BasePart): ()
  local BA = A.Position - B.Position;
  local CA = C.Position - B.Position;

  return (BA:Cross(CA).magnitude/2);
end;

by just using this function

local a1,a2,a3 = GetAreaOfTriangle(A, B, v), GetAreaOfTriangle(A, C, v), GetAreaOfTriangle(B, C, v)
if a1 + a2 + a3 == GetAreaOfTriangle(A, B, C) then
	contained = true
end

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.