Castle
play2.9k
40
4 Comments
Next up
“3D CUBE” IF USED PLS GIVE ME SOME CREDIT #3D #cube #cute #dog #forsaken #roblox #matrix #perspective #triangle #games #endingkit #kits #animation #meme #roblox #minecraft #mazegame #mazekit #xd
If you like to use the script, Pls give me credit :D
fire2Reply
function cosineLaw(a, b, c) return math.acos((a^2 + b^2 - c^2) / (2 * a * b)) end -- Función para dibujar un triángulo con dos Right Triangles function drawTriangle(v1, v2, v3, tri1, tri2) local s1 = math.sqrt((v2.x - v3.x)^2 + (v2.y - v3.y)^2) local s2 = math.sqrt((v3.x - v1.x)^2 + (v3.y - v1.y)^2) local s3 = math.sqrt((v1.x - v2.x)^2 + (v1.y - v2.y)^2) local a1 = cosineLaw(s1, s2, s3) local a2 = cosineLaw(s2, s3, s1) local a3 = cosineLaw(s3, s1, s2) local longestAngle = math.max(a1, a2, a3) local origin, base, apex, adjacent, angle if longestAngle == a1 then origin, base, apex = v3, v1, v2 adjacent, angle = s2, a2 elseif longestAngle == a2 then origin, base, apex = v1, v2, v3 adjacent, angle = s3, a3 else origin, base, apex = v2, v3, v1 adjacent, angle = s1, a1 end local e = math.abs(adjacent * math.cos(angle)) local rotation = math.deg(math.atan2(base.y - apex.y, base.x - apex.x)) local bx = base.x - math.cos(math.rad(rot
fire1Reply
Masterminded
Reply
This is so tricky 😰
Reply