Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function findRotationPosition(pos, rz, dist, rot) {
  2.     var temp = new mp.Vector3(0, 0, 0);
  3.     temp.x = pos.x;
  4.     temp.y = pos.y;
  5.     temp.z = pos.z;
  6.     var degrees = (rz.z + rot) * (Math.PI / 180);
  7.     temp.x = temp.x + dist * Math.cos(degrees);
  8.     temp.y = temp.y + dist * Math.sin(degrees);
  9.     return temp;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement