Best practice to handle mirrored body hit animations?
With mecanim: if a character can be hit either from the right-hand side or from the left-hand side, how would you animate the reaction depending on the hit's direction?
Would you duplicate animations and mark the copy as "mirror", and pass some parameter to indicate the direction of the hit?
Can the animation be mirrored at runtime to avoid duplicating animations?
Any ideas are appreciated!
Answer by theANMATOR2b · Mar 14, 2017 at 01:17 AM
Animations can only be mirrored in humanoid rig only.
Avatar masks do not mirror - to the best of my knowledge.
I have no code suggestive considerations.
Personally I'd mirror animations externally and import as separate animations - as long as number of animations were not an optimization issue. Unless I was working with a competent coder who could reduce my workload by mirroring at run-time as you mentioned.
Your answer
Follow this Question
Related Questions
How to call 'Animator.Play' without wait for FixedUpdate? 0 Answers
8 way directional 2D attack animation? 0 Answers
Can I copy moves from one animator to another using Mecanim? 0 Answers
Problem with Mecanim sprite animations on a fast paced game. 0 Answers
Mecanim "Loop pose" removes root motion in preview 0 Answers