- Home /
Click Object to Rotate Camera
Hi everyone. I have come across the problem of rotating the camera when clicking on an object in my game. I have a collider and everything like that it is just the scripting I am having the trouble with. I have tried using Itween but I just cannot seem to get it to work. I would like to know how I can solve this problem.
Can you describe in explicit detail what the problem is? I'm having a hard time understanding what the issue is.
Answer by cgcookie · Dec 25, 2012 at 05:35 AM
Run a little script that runs when you click the object. The command you want to look at
Camera.main.transform.Rotate(0,0,0)
If you have trouble integrating this into your script I can help you with some javascript.
Thanks heaps. I'll try this once I get back to my laptop
How would I make it so when I click on a 3d text the camera will rotate?
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Click handling at world scene level 1 Answer
Need help with rotation script. 1 Answer
How to rotate the head in the direction of the camera 2 Answers
mouse click on objects 1 Answer