- Home /
Animating Parent is Deforming Child Mesh & Collider
Hi All,
I created an animation for a model to translate along a transformation axis and back to it's original position. I have coins sitting on top of it and want them to move along with it, so I placed them as children to the main model I'm animating.
Now as the model moves and the coins rotate, they are stretching sideways and the collision sphere's radius increases and decreases constantly.
If anybody has an idea it'll be a great help. I couldn't find a solution so far.
The following images explain it:
From the look of it the coins are parented to a object that is scaled in the Z axis. When parenting objects, childs inherit from their parent's transformations, not just position ;)
Okaaay! I didn't realise that. So basically:
Child's transformations (position, rotation & scale) = Parent transforms + Child's transforms
Answer by ImpOfThePerverse · Apr 21, 2018 at 04:35 PM
Create an empty parent gameobject with uniform scale that both the bar and coins get parented to. When you want to move the bar, move the empty parent.