0
$\begingroup$

I have a problem with constraints: I use Child Of constraints to animate the parent of objects (e.g. robot passes part to another robot). All objects should be grouped under a master parent (empty).

If an object has a Child Of contraint and at the same time is the child of the master parent, then it gets twice the values ​​and thus an offset.

The blue cube is bound to the master by Child Of and in the second screenshot in the hierarchy, an offset is created, when the master is moved.

enter image description here

enter image description here

The animation is baked and exported to a real-time engine (Unity), so it's important to me that the objects are neatly arranged in the hierarchy.

Is there a solution for this?

$\endgroup$

2 Answers 2

1
$\begingroup$

BSE -

There are 3 cubes, Red, Fawn & Blue.

Blue is a child of Fawn.

A master handle is parenting all 3. When the master moves, it takes Red & Fawn ok, but Blue would move twice the distance. That's because the child-of constraint is still parenting Blue to Fawn.

The solution, (if the Child-of constraint must remain) is to limit the master parent to just Red & Fawn. Blue will then follow Fawn normally, not the master and all 3 will move aligned.

$\endgroup$
0
$\begingroup$

I used a workaround to use child of contraints and keep clean hierarchy: You can use an armature with a bone constraint child of and parent your mesh to this bone.

enter image description here

$\endgroup$
1
  • 1
    $\begingroup$ Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. $\endgroup$
    – Community Bot
    Nov 8, 2023 at 8:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .