Search Unity

Animate Sub-Object Z Axis

Discussion in 'Animation' started by kira911911, Sep 9, 2015.

  1. kira911911

    kira911911

    Joined:
    May 29, 2015
    Posts:
    10
    Hi all!
    I'm trying to animate a pseudo tank, so when it shoots, it's combat tower(where the canon is) goes a bit backward and forward again, to get an effect of recoil. I'm doing that by animating the combat tower Z axis, but when playing the game, the combat tower recoils using the tank's body's Z axis. So if the tank's body is fifty degrees turned and the combat tower is ninety, the combat tower's recoil will be relative to the tank rotation and not it's own. Could someone help me with this please?