- Home /
Resizing one mesh to fit another mesh.
I'm working on my character creation system, and I basically want to make it so clothes can be resized automatically based on a series of stored vectors. There will be a set of these vectors to show the width/length of each of the character's bones, and another set for the clothing's bones. And basically bone's scale = (baseClothingBoneSize / baseCharacterBoneSize); So the bone will be fit to the character automatically.
However, I don't have a firm grasp of objects and meshes in Unity yet. I've been dissecting the Character Customization project, and it merges the meshes together, like I would ultimately like to do.
But it seems when I manually resize the part but remove the bone, the part reverts to zero-vector pos, rot, and scale. I figure this would also happen if done at run-time.
Instead, I could reshape the bones, then parent the clothing bones to the character's bones. But this wouldn't let me combine the meshes together, would it? It would also create a big mess of transforms to take care of...
So I ask, is there some way I could rescale parts of a mesh to fit another mesh, and combine the meshes together?