Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RaycastHit hit;
- if (Physics.Raycast(Camera.main.ScreenPointToRay(Input.mousePosition), out hit, 100))
- {
- aimPos = hit.point;
- aimPos.y = 0;
- }
- spawnedHook.transform.LookAt(aimPos);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement