Search Unity

  1. Going to #UniteBerlin? Bring a buddy & get 25% off the 2nd ticket! More info here.
    Dismiss Notice
  2. Famed game designer and creator of The Sims, SimCIty, and Spore is looking for a 3D artist to join their team. Join the challenge.
    Dismiss Notice
  3. Unity 2017.4 has arrived! Read about it here.
    Dismiss Notice
  4. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  5. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  6. We've opened a new World Building sub-forum to faciltate all your world building discussions! Drop in and ask any ProBuilder, ProGrids, or PolyBrush questions.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Animation clip is locking FPC camera rotation

Discussion in 'Animation' started by LSC17, Apr 10, 2018.

  1. LSC17

    LSC17

    Joined:
    Aug 4, 2017
    Posts:
    6
    hey all, still pretty new to unity, I'm using the standard assets FPC character prefab, and I used mecanim to animate the player to crouch up and down in 2 states, with a blank idle to hold in between.

    With 2 trigger words of Play and Stop to go back and forth. All trigger words get called with playmaker.

    The issue I dont understand is when I added a 3rd clip to animate the camera falling over (player dying/death) to only be called via a 3rd trigger word (which I realize below the transition for death should actually be on Any State, my mistake, nvm that), the player cameras vertical rotation is then locked during gameplay... :/ even though mecanim is only on "Idle" at the time.

    Why this is the camera locking up? how do I avoid this conflict?

    many thanks

    testing-1.png
     
  2. Mokzen

    Mokzen

    Joined:
    Oct 10, 2016
    Posts:
    40
    I second this question, I have the same issue.
     
  3. LSC17

    LSC17

    Joined:
    Aug 4, 2017
    Posts:
    6
    Yeah I've seen similar posts about it but I haven't quite grasped what the fix/working method is, something to do with where to add the animation controller and hierarchy of empty game objects to put animation controller on etc.

    And it's near impossible to google this because wording this specific issue is very difficult
     
  4. Mokzen

    Mokzen

    Joined:
    Oct 10, 2016
    Posts:
    40
    Indeed. I started this thread with a video:
    https://forum.unity.com/threads/animation-locked-camera-rotation-now-with-video.526292/#post-3458355

    Same issue as yours?
     
  5. LSC17

    LSC17

    Joined:
    Aug 4, 2017
    Posts:
    6
    Yeah looks the same as mine, i can rotate horizontal but not vertical, it seems that if another animation clip has camera rotation added to it, then it freezes that object, even when in idle state which makes no sense at all, im stumped
     
  6. Mokzen

    Mokzen

    Joined:
    Oct 10, 2016
    Posts:
    40
    I've had the same thought. My idle animation, which doesn't even have any movement parameters, is somehow locking the cameras rotation. It's weird.
     
  7. Mokzen

    Mokzen

    Joined:
    Oct 10, 2016
    Posts:
    40
    @LSC17

    I found a workaround for this issue. I made the FirstPersonCharacter object a child of an empty GameObject, which I then animated instead of the actual FirstPersonCharacter object. It works fine for me now.

    Apparently Unity doesn't like animating the FirstPersonCharacer object if that's where your main camera is located.
     
    LSC17 likes this.
  8. LSC17

    LSC17

    Joined:
    Aug 4, 2017
    Posts:
    6
    Yeah it seems to boil down to needing to use the animator on empty parents, kind of annoying though