title: Rotating a point around another point in 3D
body: <p>Can I figure out a point's 3D position after rotating the reference point it's relation to, by knowing:</p>
  
  <ul>
  <li>Point's world position (<em>vec3</em>)</li>
  <li>Point's offset from pivot point (<em>vec3</em>)</li>
  <li>The pivot's world position - Moving Pivot - Not At Center (<em>vec3</em>)</li>
  <li>The pivot's rotation on the 3 individual axis (<em>vec3</em>)</li>
  </ul>
  
  <p>So ultimately, I'm not just trying to rotate a point around a pivot, but rather <strong>rotate the pivot 3D point first (player), and based on it's rotation, I would like the other point rotate (orbit) around it</strong>. The "other" point's position is not the same as the pivot point's, it's away from it in 3D and it's position (for now) is "player position + offset"</p>
  
  <p>If anyone with trigonometry knowledge can give me a hand with this I'd greatly appreciate it</p>
  
  <p><a href="https://i.stack.imgur.com/HdEGz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HdEGz.jpg" alt="enter image description here"></a></p>