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

Problem in changing position of character with mouse move

Discussion in 'Animation' started by rbm123, May 24, 2015.

  1. rbm123

    rbm123

    Joined:
    May 24, 2015
    Posts:
    129
    Hi all - I'm new here

    My english is not good - so i record the screen to show my problem !

    its only 1mg
    I'm Using Unity 4.1 and mecanim

    this is the animator panel:
     
  2. medhue

    medhue

    Joined:
    Aug 24, 2014
    Posts:
    176
    Looks to me that the script to do the mouse look is on the camera, instead of the player.
     
    rbm123 likes this.
  3. rbm123

    rbm123

    Joined:
    May 24, 2015
    Posts:
    129
    no more idea?
     
  4. bennyboy

    bennyboy

    Joined:
    May 5, 2015
    Posts:
    13
    Your character's center of rotation isn't set to the middle of the character's mesh. Either the character wasn't modeled at 0,0 in your animation software, or the mesh is parented to another object, which you are rotating, or something like that. Make sure that your character is centered to 0,0, and you should be okay.
     
  5. rbm123

    rbm123

    Joined:
    May 24, 2015
    Posts:
    129
    character is centered to 0,0
    in the beginning you see that rotation works well buat
    this problem happens when i push "W" and "A" and mecanim is going to play to animation together .
    (srry for my english)