Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  4. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Animation transform ignored

Discussion in 'Animation' started by Cachwir, Sep 16, 2018.

  1. Cachwir

    Cachwir

    Joined:
    Feb 27, 2018
    Posts:
    2
    I'm on a 2D project without gravity, working on creating an attack on my ennemy. The attack is as follow : stay put (channeling), charge the player at high speed and if it hits, bump on it, moving a bit up and back until it hits the ground.

    I control all movements with a script, except the bump which is controlled by an animation (where I change the position and rotation of the ennemy, using the curves).

    I put my ennemy's movements in the LateUpdate loop to avoid my ennemy being immobilized by the animator.
    However, now the animation's changes on the transform property (position and rotation) are completely ignored and the ennemy stays put when bumping. I checked that the animation state is being reached.

    Any idea ?
     
  2. Cachwir

    Cachwir

    Joined:
    Feb 27, 2018
    Posts:
    2