Search Unity

Question How to not reset the rotation animation when playing an animation imported from 3Ds Max?

Discussion in 'Animation' started by Broad_, Oct 18, 2022.

  1. Broad_


    Sep 7, 2022

    I want to animate the wheels of an omni-directional vehicle.

    I first imported the different animations of the wheels according to the movements it makes, from 3Ds max.
    I manage the movements of the vehicle with a script so in my animations only the wheels turn.
    I control this rotation from a 2D blend tree map in order to be able to match exactly the movement of the wheels according to the direction of the vehicle.

    But my problem is that the rotation is regularly reset when moving, I would like to avoid that.

    If for example the wheel is 85° and the user stops, I would like it to stop at 85° and once he starts again the rotation starts again at 85° without resetting to 0 each time.

    I tried to look for the RootMotion but my case being particular I can't solve this problem.

    With kind regards,