title: New to Lua - Get angle between two 3D Vectors
body: <p>I'm trying to calculate the angle at which an object is thrown, How can I apply the formula in Lua.</p>
  
  <p>I have these values:</p>
  
  <p>x1,y1,z1 = 1491, 1560, 11</p>
  
  <p>x2,y2,z2 = 1491, 1560, 150</p>
  
  <p>I based on this video: <a href="https://www.youtube.com/watch?v=QWIZXRjMspI" rel="nofollow noreferrer">https://www.youtube.com/watch?v=QWIZXRjMspI</a></p>
  
  <p>I'm trying with that:
  FORMULA: cos(0)=a*b/|a||b|</p>