Search Unity

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:
    130
    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:
    130
    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:
    130
    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)