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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Third Person camera controls?

Discussion in 'Editor & General Support' started by RattyGirl, Sep 19, 2015.

  1. RattyGirl

    RattyGirl

    Joined:
    Sep 19, 2015
    Posts:
    2
    Hi everybody,
    I have made my own model from blender and imported it to my game. My camera follows the character and everything is working except the controls. I can't fully turn around and the D key makes the character go forwards. What I am aiming for:
    W key is forwards
    A key is turn left
    S key is backwards
    D key is turn right
    I'm new to unity so I don't know how I would go about this.
    Thanks! :)
     
  2. Carwashh

    Carwashh

    Joined:
    Jul 28, 2012
    Posts:
    746
    Download the "Standard Assets" from http://unity3d.com/get-unity/update (click the 'Additional Downloads' under the date) -> install while Unity is closed -> Open your project -> Assets -> Import Package -> Characters -> unselect what you don't need/ want (prob just leave ThirdPersonCharacter selected) -> see how they did it and either make your own or edit that one to do what you want.

    A/D will probably be strafe though.
     
  3. CStunner

    CStunner

    Joined:
    Jul 12, 2013
    Posts:
    39
    my best guess is you're using Vector3.forward (which uses the world forward) you need to use transform.forward and transform.right.

    Not trying to be rude, but you must watch Unity Learn Videos, go through the basics and proceed after you're sure you understood the concept.
     
  4. RattyGirl

    RattyGirl

    Joined:
    Sep 19, 2015
    Posts:
    2
    I will try the 'standard assets' and I will also watch the learning videos. Thanks for your replies!