Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

3rd Person controller

Discussion in 'Scripting' started by DarkBladeNemo, Nov 12, 2014.

  1. DarkBladeNemo

    DarkBladeNemo

    Joined:
    Aug 23, 2013
    Posts:
    116
    Hey Everyone

    Can someone help me out. Im looking for a tutorial on scripting a decent 3rd Person Controller with camera and everything. I have used the method that includes using some of the FPS scripts but it didnt feel right.

    Please note I suck at scripting and am still learning thus the tut for the script or help with it.

    Thanks in Advance
     
  2. Gooseman_1977

    Gooseman_1977

    Joined:
    Aug 15, 2013
    Posts:
    89
    I found this tutorial pretty useful.
     
  3. AlucardJay

    AlucardJay

    Joined:
    May 28, 2012
    Posts:
    328
  4. Nubz

    Nubz

    Joined:
    Sep 22, 2012
    Posts:
    553
    Last edited: Nov 12, 2014
  5. AlucardJay

    AlucardJay

    Joined:
    May 28, 2012
    Posts:
    328
    Really Nubz? Sounds like you had problems completing the tutorial. I shall post a web build of my old project when I get home.
     
  6. Nubz

    Nubz

    Joined:
    Sep 22, 2012
    Posts:
    553
    No I didn't have any problems completing anything.
    No need to post it I have all the completed scripts.

    Unless you did something to it it is a glitchy mess in the end.
    Back up against a wall and strafe with it you'll see how much the camera spins around in circles or zooms in and out over and over.
    Which is a very well known problem with the system if you go look through the forums.
     
    Last edited: Nov 12, 2014
  7. DarkBladeNemo

    DarkBladeNemo

    Joined:
    Aug 23, 2013
    Posts:
    116
    lol well Nubz if you have anything to add you are welcome to :) ill have a look through all of them when I get home. I mainly justt want a comfortable 3rd person controller that can easily be modified thats why I asked for a tut I figure if I type it out and follow ill be able to understand it and change what I need changed. But thanks for the replys so far :)
     
  8. AlucardJay

    AlucardJay

    Joined:
    May 28, 2012
    Posts:
    328
    Nubz : Aah, so when you say 'This is horrible and is terrible buggy and glitchy' , you are referring to the camera script. Sure, it's not perfect, but quite robust. Working to solve camera occlusion is actually a bit of a science. I have broken the camera in many AAA games. The 3DBuzz version could be modified to check if it cannot find a suitable position after a period of time then stop trying and just allow clipping, keep checking for the next valid position then resume normal function. But to clarify the OPs question : how did you find the Character Controller? Pretty neat being able to climb cliff faces, huh :)

    DarkBladeNemo : I still recommend this tutorial, yes it is long, and yes there is some theory. But after doing the series I really felt like I learned a lot about coding practices as well, I got more than just the controller and camera out of it.

    There are many others out there, and I am still keen to see them all, it's all about finding the one that suits your needs. Good Luck.

    ps have you checked the long general list of tutorials on Unity Answers and Forums? May be something there too :

    http://answers.unity3d.com/questions/12321/how-can-i-start-learning-unity-fast-list-of-tutori.html

    http://forum.unity3d.com/threads/list-of-tutorials-and-resources.114813/