were importing animations of our turret firing from maya.
their are no keys on the rotation except for the X rotation.
the turret points at the player fine, then fires but when it fires it snaps back to face it default rotation down the z axis.
does anyone know why? or how to fix it.
An animation will often run in world space if you don’t specify otherwise. It could be that the rotation is returning to the original direction in world space while firing. Try putting the turret inside a empty parent object to make the animation relative to the parent’s local coordinate space. If you are using a script to rotate the gun to face its target, you will need to attach this to the parent and you may need to modify it to find the animation on the child.