Animation problem.

Ive made a enemy in cheetah 3d, and i accidentally made the animations face left, so when he attacks he face’s left, same with all the other animations, is there a way i can rotate them without starting again, maybe a script, please help, im stuck :S

You could try checking if an animation is playing, and if so do a 90 degree rotate, something like:

rotated : bool = false;

function Update()
{
...

if (animation.isPlaying  !rotated)
{
rotated = true;
transform.Rotate(Vector3(0, 90, 0));
}

if (!animation.isPlaying  rotated)
{
rotated = false;
transform.Rotate(Vector3(0, -90, 0));
}

...
}

I’m not sure if that will work perfectly or not. I’m afraid it might cause the model to jerk when animations start and stop, and if so one of the veterans might know of a better way. :slight_smile:

i got it to work for the attack animation, but for idle and walk he jsut keeps spinning.

Make it a child of another object and rotate that object to the right.