Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Update() {
- var hit : RaycastHit;
- if (Physics.Raycast (camera.ScreenPointToRay(Input.mousePosition), hit)){
- // and they clicked on something, so move the light there
- myCamera.LookAt( hit.position );
- }
- }
Add Comment
Please, Sign In to add comment