title: Gravity Between a Pair of Triangles
body: <p>Given two triangles in 3D, defined by points <code>[t1.v1, t1.v2, t1.v3]</code> and <code>[t2.v1, t2.v2, t2.v3]</code>, where v<em>X</em> are points with variables <code>(x, y, z)</code>.</p>
  
  <p>How can I calculate the force of gravity between them?</p>
  
  <p>Formula for point masses:</p>
  
  <pre><code>force = constant*mass1*mass2/(distance^2);
  </code></pre>
  
  <p>For my application, the triangles will be close together, and approximating via point masses would not have the required precision.</p>
  
  <p>I understand that this could be solved with a quadruple integral, but I don't have much mathematical know-how towards creating or solving such a complicated equation.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>My similar (related) question on math.stackexchange: <a href="https://math.stackexchange.com/questions/1082860/general-solution-for-the-gravity-between-two-3d-triangles/">https://math.stackexchange.com/questions/1082860/general-solution-for-the-gravity-between-two-3d-triangles/</a></p>