- Home /
How can you rotate the object both through animaton and through code in the same time?
Hey everyone, I have been working on my project for some time now, I am a beginner and I recently realized that if you rotate your object through animation constantly on y-axis, and try to rotate the same object on z-axis through code, it won't work, the animator will keep resetting it back to 0;
So my question is: How do I bypass that? Is there a way to unlock those constraints animator put there. Do I have to rotate my object on y and z through code only? Thank you!
Answer by cdr9042 · Nov 05, 2019 at 07:33 AM
try selecting the key for x & y rotation in the animation clip and delete it
if that doesn't work, you can try putting that object in a parent object, then have the animator rotate the parent object, and the code rotate the child object, or vice-versa
Your answer
Follow this Question
Related Questions
Why is the rotation missing when I animate? 1 Answer
How to rotate an object with animation? 0 Answers
Why one of object's animation has global rotation data, and another has local rotation data? 0 Answers
Rotate object by clicking on it with animation 1 Answer
Character Movement won't work properly because of the rotation 1 Answer