Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function findRotationPosition(pos, rz, dist, rot) {
- var temp = new mp.Vector3(0, 0, 0);
- temp.x = pos.x;
- temp.y = pos.y;
- temp.z = pos.z;
- var degrees = (rz.z + rot) * (Math.PI / 180);
- temp.x = temp.x + dist * Math.cos(degrees);
- temp.y = temp.y + dist * Math.sin(degrees);
- return temp;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement