RIGonometry with the Law of Cosines

October 27th, 2006


I was trying to add a visual indicator to Thuriot’s templateLE script (because I don’t love lining up the locators in the viewport).  Anyway…. I found that a  flattened nurbs sphere has the right look and its sweep angle in the creation node could be driven by just finding the angle of the joint — COOL!

Uncool. I couldn’t find the actual angle between any of the joints in any node! I could simply use vector2Rotate.mel, but I wanted it to be driven by nodes so it updates quickly. I might be schooled here later with a simpler way to find the angle…

BUT I do know the Law of Cosines!
 and the lengths of 3 sides of a triangle.
The only problem was that I needed to use the acosd command in the last part of the equation, and there are no trig nodes, so I had to resort to an expression at the end of my utility network.
If you know of any TRIG utility nodes, I’d love to use them.
Download obliqueTriangleTRIG.ma

Entry Filed under: MEL, Miscellany, Rigging General


Calendar

January 2019
M T W T F S S
« Jul    
 123456
78910111213
14151617181920
21222324252627
28293031  

Most Recent Posts