Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Rotating a character's torso up/down with mouselook

Discussion in 'Scripting' started by Sargon_of_Akkad, Jan 26, 2013.

  1. Sargon_of_Akkad

    Sargon_of_Akkad

    Joined:
    Jan 16, 2011
    Posts:
    147
    Hello all, I'm trying to rotate an animated model's torso up or down to match the camera's mouselook, using the first-person character controller.

    How is this done? I have searched the net and I can't find anything concrete to go on. Is this something that is stupidly easy that I'm just missing, hence nobody asking about it?
     
  2. nbg_yalta

    nbg_yalta

    Joined:
    Oct 3, 2012
    Posts:
    378
    Here is some video tutorials how to, there is 3 parts called Set Up Character.

    YouTube Link

    Hope it helps.
     
  3. Sargon_of_Akkad

    Sargon_of_Akkad

    Joined:
    Jan 16, 2011
    Posts:
    147
    Thanks very much, that did indeed do the trick, except the animations no longer work. I presume this is because I'm splitting the armature, but I really don't know.

    Any ideas?

    Thanks again!
     
  4. fano_linux

    fano_linux

    Joined:
    Jan 1, 2012
    Posts:
    909
  5. Sargon_of_Akkad

    Sargon_of_Akkad

    Joined:
    Jan 16, 2011
    Posts:
    147
    That's interesting, how exactly do you apply weight to an animation? Is there a tutorial I can use?

    Cheers!
     
  6. fano_linux

    fano_linux

    Joined:
    Jan 1, 2012
    Posts:
    909
    The bootcamp sample that comes with unity show exactly what i'm talking about.
    Take a look and you will find it