- Home /
Animation within Unity
I have a question regarding animation. If I have a player, and he has an animation like he attacks. The animation is done in unity. If and when I walk the player around then I hit the animation button to play the attack. He is automatically transformed back to the position i'm assuming where I animated him. How do I go about playing the animation wherever he is at that moment of?
Thank you.
Answer by mrde · Feb 08, 2011 at 12:36 AM
I hade same problem also. I had gun with animation when a playe it animation startes to calculate from global coordinates, but when I move it child of gunParent GO, then it will animate in local coords from parent gunParent. Make it child of playerParent and move all or some of components to playerParent (Character Controller, ...). I not't thik that this is the best solution.
Your answer
![](https://koobas.hobune.stream/wayback/20220613103307im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Animation script with is.grounded help 0 Answers
change animation name in inspector 2 Answers
Animation component in Unity 4.3 doesn't work? 2 Answers
Character controller problem? 2 Answers