Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.19 KB | None | 0 0
  1. RaycastHit hit;
  2.         if (Physics.Raycast(Camera.main.ScreenPointToRay(Input.mousePosition), out hit, 100))
  3.         {
  4.             aimPos = hit.point;
  5.             aimPos.y = 0;
  6.         }
  7.         spawnedHook.transform.LookAt(aimPos);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement