scripting enquiries

Hi All,

i need your help as i am quite new with unity 3d hence i don’t really understand with some of the function though i did read up some of the research from the wiki.

Because i am suppose to do some scripting to enable my camera to make some movement. Right now my mouse.orbit.js is attach with the camera. However, i can’t run the script. But when i place the FPSWalker script on my First Person controller is actually moving.

However the mouse.orbit that i attach in the camera is not functioning. Is there anyone here can explain and help me on that? Really appreciated. Thanks alot.

Is it because you didn’t set a target for the camera to orbit around?

Well, actually i did. Hmmm… may i know what is the purpose for the FBSWalker script for?

is it only apply since i am using the First Person Controller?

Thanks

I thought your problem was with the mouse orbit not orbiting? What does that have to do with the other script?

Mouse orbit lets you add a transform (drag a game object into that part of the script in the inspector) that it will look at and then your mouse will orbit the camera around that object.

Yes, i got it. Really thanks. i can finally make my camera move and rotate around.

Well, now i am facing with another problem. i hope someone can enlighten me with this. i would like to ask for advice as i am really struck and unsure about the function() call that i can use, so that my camera is able to move automatically without controlling the WASD in the keyboard?

my scenario for my project is that i have a plane and a camera. However, my plane is hidden. Then i need my camera to move around the terrain automatically. Then i will need to set some setting so that when my camera reaches the boundaries it will rotate back in a clockwise direction. Anyone know how can i achieve this ? Can someone please enlighten me with this? Really deeply appreciated. Thanks