Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Animating a door

Discussion in 'Animation' started by overburn404, May 21, 2017.

  1. overburn404

    overburn404

    Joined:
    Feb 19, 2017
    Posts:
    23
    Hello,

    I have a bit of an issue. I have a door and 2 animation clips - open and close. In the animator I have 2 extra idle states for when the door is opened or closed.
    If the door's default position is closed, to have an idle state of it being opened to i need to add an animation clip with it rotated to 90 degrees, or is there a better way?

    Also, I can't help but notice that despite disabling the collider during the animations, the door still collides with the player object. Any ideas how I could do that?

    Thanks!
     
    Last edited: May 21, 2017
  2. Suduckgames

    Suduckgames

    Joined:
    Nov 28, 2016
    Posts:
    191
    you can use the same animation clip with a speed of -1, It will reverse the Open animation
     
  3. alexanderameye

    alexanderameye

    Joined:
    Nov 27, 2013
    Posts:
    1,219
unityunity