So I have a robot that can be customized.
Each part of the robot (Head, Torso, Arms, Legs) can be changed with different shapes and forms.
The robot looks like this (I’m using Unity objects for now) :
Let’s say the user changes the Torso and decides to put a cube torso instead of the rectangular one, then it would look something like this :
Now in both cases, the parts aren’t really joined together, you can clearly see space between the head and the torso, the arms and torso, the legs and torso.
Regardless of the shape and form the user chooses, the end result should look like this img link without any spaces.
Each part has its own collider (Box/Sphere/Cylinder), so I was thinking of moving a part (ie: Head) downwards until it collides with the Torso so that it sits on top of the torso removing unwanted space.
What do you think of this approach? Is there anything simpler?