Camera movement

Hi all,

i hope you can really help me as i am quite new in unity3d. Does anybody know how to do dolly and bird eye view using scripting to create that camera effect? i need the dolly and bird eye view for my project but i was struck. I hope someone can enlighten me. Really appreciate it. Thanks

Point the camera downwards and add the following script to any game object in your scene:

var StartPosition = Vector3(0,0,0);
var EndPosition = Vector3(10,0,0);

function Update () {
	Camera.main.transform.position = Vector3.Lerp(StartPosition, EndPosition, Time.time);
}

…you don’t need ‘Camera.main.’ if you are attaching the script to the camera itself.

Hi Robbie,

Thanks for the reply. Another thing may i check with you can i move the camera in a clockwise direction using scripting? As i am doing a project that require me to move my camera to focus on an object in a clockwise direction. i hope you can help. Thanks

Hi Robbie,

Thanks for the reply. Another thing may i check with you can i move the camera in a clockwise direction using scripting? As i am doing a project that require me to move my camera to focus on an object in a clockwise direction. i hope you can help. Thanks

I think the script ‘MouseOrbit.js’ that is included with unity is a good place to start for that… take a look and see where you get with that.

If you get stuck, then post an example of your work so far…

Hmm… i am sorry as i am really quite new to unity3d and there are alot of unclear part which i wish to clarify out and i hope you don’t mind.

Well, so which portion of the script may i edit to rotate my script? I thought by mouse.orbit i am able to move the camera around the interface? i am given a project which i need to attach my plane to my camera…As now my camera can only move left and right and front. Now i need my camera to rotate in a clockwise direction to make the plane look more realistic. Is it possible?

Thanks
Wendy

Hi all,

i hope u can help me on this… Hmm… i am sorry as i am really quite new to unity3d and there are alot of unclear part which i wish to clarify out and i hope you don’t mind.

Well, so which portion of the script may i edit to rotate my script? I thought by mouse.orbit i am able to move the camera around the interface? i am given a project which i need to attach my plane to my camera…As now my camera can only move left and right and front. Now i need my camera to rotate in a clockwise direction to make the plane look more realistic. Is it possible?

Thanks
Wendy