Search Unity

  1. Unity 2019.1 is now released.
    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