- Home /
How to keep the default axis as it is after camera rotation?
][1]
please see image below I am using the mouse orbit script for rotation.while rotating the camera my game object axis changed means gameobject horizontal axis works vertical and vertical axis works horizontal.how to fix the axis according to the device x and y direction. if u know the the script which solve this problem please help me in that.
Answer by frogsbo · Mar 16, 2014 at 06:47 PM
controlling camera look is always based on a script on the camera, that looks at an object, or to fix the camera as a child of an object, or to place smooth follow script on camera, to do keyboard orbit, the camera just orbits around an object. to follow a moving object make the camera a child of object and point towards, and rotate the parent object, camera always follows it. you can place the camera in space near an object so that it slerp and rotatearound but that is more advanced. it takes alot of reading to understand scripting camera follow codes, rather than just place in object or use fps, third person, orbit, sommoth follow, mouse look, scripts.
thanks for the answer, but i am not getting exactly, so please provide the script if you have or any example.
Your answer
Follow this Question
Related Questions
How can i add different jumping state in unity3d 1 Answer
How To Crop the Gallery image for iphone in unity3d 0 Answers
how to use matrice with unity 3D 1 Answer
About ListItems in Unity3D 1 Answer