- Home /
How to rotate camera around an object at a fixed position?
Hello I really could use some help with this!
I have a car (game object) in my scene and I really would like to rotate my camera around it at a fixed position. I have tried rotating around it normal using scripts from both the internet and the asset store but none of them seem to work. So my Question is:
How would I be able to rotate around an object at a fixed position whilst the camera us looking at the object and using touch?
I really could use some help with this! Thank You!!
Answer by allenallenallen · Sep 21, 2015 at 03:55 PM
So you basically grabbed random scripts without knowing how they work at all, which makes me not want to help you much. And looking at your past questions, you never tried to code anything. This isn't coding 101. I'm not going to do your work for you. Learn some coding and at least try to solve the problem by yourself.
If the car doesn't move, you can use this: http://docs.unity3d.com/ScriptReference/Transform.RotateAround.html
And this to look at the object: http://docs.unity3d.com/ScriptReference/Transform.LookAt.html
If the car moves around, you have to use a more complex method. See http://answers.unity3d.com/questions/54794/3rd-person-camera.html
Well it is good to see that there are nice people still on this website... I was asking a question in the nicest way possible and it is good to see some backhanded comments once in a while, it makes the site more interesting. I have tried solving the problem myself, but unfortunately that failed, so why do you think I am on here? this is my last go to website. There is a multitude of ways to do this one simple thing and many have different results. Sorry I don't know the ins and outs of code yet, truly I am from the deepest depths of my heart, it must really annoy you, I never asked you to do my work for me, although since you went through my profile it's obvious you have enough time in the day to do both. Please and I beg you, try and learn some manners, some people call it constructive Criticism, and at least try and read a book called $$anonymous$$anners 101.
Have a good Day.
@Drummermonkey01 $$anonymous$$anners? What does that have to do with this? I didn't say anything about your manners or attitude, which are both fine in my opinion. I'm talking about your approach. You said it yourself that you tried by grabbing scripts online and from the asset store. Yet you didn't supply your own code. That's how I inferred that you didn't try to solve the problem by yourself. The LEAST you could do is list the things you understand so we can help you from there.
Furthermore, your question is a duplicate of another tens of hundreds of question: "Third Person Camera" on Unity Answers.
Your lack of knowledge and skills in coding doesn't annoy me. The fact that you didn't show that you tried does.
There's no constructive criticism to asking questions on Unity Answers. It's called following the FAQ: http://answers.unity3d.com/page/faq.html
If you notice I am talking about your manners not $$anonymous$$e - reading 101. I have tried to solve the problem myself and failed, why do you think I am on here?
I wonder why there are so many duplicate questions. Perhaps because most answers just point to a link and say there you go, that's a bit like saying 'oh here are the parts to build a machine but the instructions/plans and how to make it are gone' People need to know how its all fits together not the individual parts.
The third link is the type of thing I am looking for and that is what all was needed, not the 'This isn't coding 101, I'm not going to do your work for you,try to solve the problem by yourself.'
Have a fantastic Day
If I were to search your question on Google, this is within the first 3 results; http://answers.unity3d.com/questions/793126/how-can-i-rotate-the-camera-around-an-object.html
You want to know why there are so many duplicate questions? Because almost no one follows the FAQ.
Now, you too have a fantastic day. (Note that I'm not against you at all. You are better than other 90% of the people who ask questions on here. I'm sorry if I sounded like a prick. We're trying to purify this damn place and after going through the daily moderation queue, my patience was thoroughly tested.)
Your answer
