- Home /
Moving bones without moving mesh
Hi All, I have a rig imported from Maya which has a few Meshes in it which are driven by bones.
During game play I want to be able to modify the mesh, and then move the bones so they align with the new mesh. For example, if I have a bone which is positioned flush with the mesh, and then the mesh becomes wider, I want to move the bone so it is still flush with the mesh.
I have tried to move all the bones, and then apply the mesh vertex positions, but this doesn't seem to be working.
Is there any way to move the bones in script without moving the mesh with it? This way I can assign the mesh to be whatever values I want, and then just move the bones to match my new mesh and then hook up the bones so they drive the mesh again.
The meshes are all in SkinnedMeshRenderer's.
Thanks, Liron
Answer by ava3 · Jan 05, 2014 at 11:28 AM
I am running into the same problem two years later, hopefully, someone knows the answer.
Your answer
Follow this Question
Related Questions
How can I animate a single model with two skinned meshes? 1 Answer
SkinnedMeshRenderer: Change Bones at start without changing mesh or blendshape results. 0 Answers
Vehicle Parts - Bones or Separate Objects? 2 Answers
Can a mesh Collider work with an animated skinned Mesh. 5 Answers
Swapping out materials on a skinned mesh renderer? 3 Answers