Search Unity

  1. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  2. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Participate with students all over the world and build projects to teach people. Join now!
    Dismiss Notice
  5. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Animation not removing transform

Discussion in 'Animation' started by mikemuk01, Jun 12, 2018.

  1. mikemuk01

    mikemuk01

    Joined:
    Dec 1, 2016
    Posts:
    18
    As my player approaches a flight of steps he triggers an animation that causes the steps to slide down below the ground, so that he cannot get up to the next floor. Unfortunately if he continues to move forward he rises up to the next floor through thin air, as if the steps were still there. Has something in the transform of the steps been left behind? How can I cure this?
     
  2. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,781
    Check if the animation has root motion or not, if it is applied in Unity, and if the character is being additionally controlled via transform/code.

    Add info on the character setup and each animation/root motion or not.
     
  3. mikemuk01

    mikemuk01

    Joined:
    Dec 1, 2016
    Posts:
    18
    The animation does not have root motion applied. Checking it made no difference. The player is a first person prefab created in Adventure Creator. I am grateful for your help, but it would be nice if you took into account the fact that some of us - me, are struggling to learn to use Unity and may not be familiar with all the terms used.
     
  4. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,781
    Well --- if there is a term you don't understand - it's your task to look it up and learn. Struggling is part of the job, welcome to game creation. I understand the feeling, but that has nothing to do with attempting to help.

    Which term are you having difficulty understanding?

    Are you driving your character via code or using a mecanim state machine?

    It sounds like the character is triggering the 'trigger' regardless if he moves up the stairs or not. Can you perform a debug.log to check if the trigger gets 'triggered' when the character approaches the stairs but does not go up them?