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

2 animation at once

Discussion in 'Animation' started by prompteus, May 1, 2014.

  1. prompteus

    prompteus

    Joined:
    Apr 24, 2014
    Posts:
    2
    I want to make robot that is (for example) walking and using a gun at once. I make that model in blender 2.7. Is it possible in Free version of Unity? If so, where can I find any tutorial? Thank you.
     
  2. Arkolve

    Arkolve

    Joined:
    Dec 29, 2013
    Posts:
    20
    I think the easiest way is to make this animation (walk + fire) in an other software and then add it to Unity. I don't know if it's possible to combine 2 animations in the same time with unity but it seems complicated.
     
  3. prompteus

    prompteus

    Joined:
    Apr 24, 2014
    Posts:
    2
    wouldn´t be easier to make gun, body and eye separately as objects with their own animations and then add to unity and pin them all together?
     
  4. Erisat

    Erisat

    Joined:
    Jan 31, 2013
    Posts:
    88
    I've been trying to do this same thing. I'm no expert on mecanim, but after reading I've done i want to do more research on Animation Blending, Masking, and Layers. Using those 3 things in some way i believe would achieve the desired effect. If I had done this yet myself, I'd share, but I'm struggling with smooth animation myself. for ex. i think i could have separate animations of the top half of the body (top half in a layer) aiming the gun at different points in front of the player, and blend between these depending on camera angle to make the player aim the gun where theyre looking, while at the same time having a layer for lower body where they could be walking/running/idle. Whats getting me is that Animation State syncing is a pro feature and Idk of any workarounds. I'm trying to figure this out myself. (except with bow's and swords, not guns :p)

    EDIT:
    http://unity3d.com/learn/tutorials/modules/beginner/animation/animator-controller-layers
     
    Last edited: May 9, 2014
  5. gloriarsanders

    gloriarsanders

    Joined:
    May 9, 2014
    Posts:
    2
    I feel very happy and confident to involve in this wonderful and valuable discussion
    Thanks
     
    Last edited: Oct 16, 2015
  6. Mecanim-Dev

    Mecanim-Dev

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    That right Erisat,

    the solution is to use layer and masking. You can have a base layer that does all the locomotion for your avatar and then a layer that affect only the upper body for your gun.

    Look on the asset store for the project Mecanim GDC 2013 sample project, in this proejct you should fine a controller named Locomotion.controller which does exactly this.

    Best regards,
    Sonny