- Home /
Issue with Animating MultiPart 2D Character with RigidBodies
Some background to the question:
I am attempting to animate and control a large multi sprite 2D Boss character for a platforming game.
Up until this point I had been assigning individual animators for each of the limbs and using RigidBody2D to control the movement of each one respectively.
This worked fine except for one thing: synchronizing each animation state with the other controllers was a huge pain in the ass and error prone.
Hence my next step was creating one single Animation Controller using multiple layers to manage the animations together. This worked great, on the animation side of things. Catch was that now it had become completely impossible to alter the Transform of the the individual limbs (any child component below the animator)
- Boss Character (main scripts and animator)
-- BossHead (collider)
-- SpriteHolder
-- BossTorso (collider)
-- SpriteHolder
-- BossLeftHand (collider)
-- SpriteHolder
-- BossRightHand (collider)
-- SpriteHolder
I have tried using transform.Translate instead of a RigidBody2D (same result)
I have tried checking apply root motion in the animator (same result)
I have doubly checked that no transform values were being modified during the animation (same result)
Unity version 2018.2.11
This use case does not seem to be all that unusual so there must be a correct workflow for this. Question is, what is the Unity correct way to achieve this?
If any other details about the setup are needed to clarify the situation I'd be happy to upload it.
Your answer
Follow this Question
Related Questions
How to sync animation if animation should be use with specially object 0 Answers
Lots of errors using speed multiplier in animation (2D). 0 Answers
Transition Between Different Player States In Animator 0 Answers
,Spawning snow or changing tilesets to snow as the player walks past them 0 Answers
2D Sprite Fillup without using UI 1 Answer