Camera controls, game like.. how?

Hi all,

I just started out exploring Unity, so I apologize in advance if this has been beaten to death already.

I’ve been browsing the manual and forum, but cannot seem to grasp the camera controls.

I found some scripts that have to be connected to the camera, doing more or less what’s on the box.
But I’m looking for the game camera controls as shown in the island example.

I just want to be able to walk through and around my little 3d model, and so far I haven’t found the solution yet.

Again, sorry for the probably obvious question, and thanks for any links, tips etc.

rob

OK,

Always nice to find a partial solution after you send a post.

I found the FPSWalker script, I was looking in the camera controls, not scripts :?

But looking at the island example, it’s a combination of stuff I still don’t ‘get’.

Anyone who is willing to explain this setup, and how to replicate it in a new scene/project.

cheers,

rob

HI all,

It seems Unity and I aren’t agreeing on the camera part.
I’ve read the starter tutorial and found the needed files in the Assets folder, and d&d it into the scene.

But whatever I set the controls to, I cannot seem to get my camera into ‘walk’ mode when I run the game. My camera seems to be locked.

I looked at the island demo again, but I cannot see any difference in my approach. I must be missing something really obvious here, but cannot see what.

Again sorry if this has been flocked to death a gazillion times…

rob

Are you saying the camera can look around, but stays fixed in one position? Can you post the script you are using to control the camera?

Hi,

What I’m saying is if I use the default asset ‘first person controller’, and when trying to look around with the camera in the game window the camera is locked. I can’t rotate or walk around.

workflow with basic scene:

  • start a new scene
  • create a cube
  • d&d standard asset ‘first person controller’ into project.
    -start game and try to move/look around in game view.

Like I said, I must be overlooking something very basic. Unfortunately I’m not the script wiz, so I wanted to start with the basics first.

rob

Hi,

I’m getting really annoyed with myself not getting this to work… :sweat_smile:

Can somebody please explain a simple step by step for making a simple scene with one cube, and adding the camera controls like in the island demo scene?
I tried -every - tip I could find in the forum on camera controls, but a. the camera doesn’t do anything, b. moves into a certain position and stays there, c. is all over the place. :evil:

Much appreciated,

rob

After adding the FPS Controller make sure to delete the Main Camera in th scene. Also make sure to place the FPS Controller above the cube… otherwise it will just free fall without landing on something.

Hi,

Thanks for the tips. After some sleep and some re-reading of the manuals I got it fixed :smile:

I’m a happy camper now I’ve taken this hurdle.

cheers,

rob

Hello,

the easy way I do it is to “Create a new Project” After creating a new project make sure the “Standard Assets” checkbox is checked (this way it will put it in your project)

the next step is to click on the camera in the hiearchy so you know it’s selected, once selected goto Component > Scripts > FPSWalker

presto you know have a character you can walk around in you scene just like the island demo (try it out press play) Well almost :slight_smile:

the last step:

goto Component > Camera-Control > Mouse Look

now press play and it’s exactly like in the island demo :slight_smile: you can also play with the sensativity of the mouse look in the inspector.

I’m not positive but I believe that’s what you were looking for and if congrats and game on!!!

Hi,

Thanks for that :slight_smile:

I didn’t have much time to dive into Unity for the last week, but looking forward to have some time to dabble with it.

This camera control thingy is sorted now. Now I have to dive into materials/textures, as there are some import issues there after exporting from Softimage.

cheers,

rob