Hi I have one closed mesh that deforms nicely. I have another mesh that is opened and don’t have any softbody physick attached. No I would like to asign some vertaxes from Not simulated -sofbody mesh to some vertaxes from simulated closed softbody mesh
can It be done?
It’s somewhat difficult to understand for sure what you want here. If you’re asking if you can directly assign vertices from two meshes that are essentially copies of eachother, one that’s been deformed with soft-body physics and one that is not deformed, then yes. If the meshes were originally copies, they have the same vertices list, with verts and triangles and UV all in the same order, and you can just loop through the vertices and copy over (or average out) the ones from MeshA onto MeshB. It’s somewhat trivial, like a “dampening effect” on any deformations that have been applied.
If the two meshes are NOT copies of eachother, and have vertices in different orders, then things are going to get really complicated, really fast. I assume in this case that the situation is something like applying a new deformation to a mesh yourself- you’ll need to calculate a kind of weight system not that unlike the way that weights work for bone-rigging in 3D modeling apps. For every vertex in MeshA, calculating how the various vertices in MeshB should be affecting it (this vertex pulls it a little in this direction, the next one pulls a little in a different direction, etc), averaging together all of these various influences until you know the new position for the vertex in question, and doing this for every single vertex in the mesh. It’ll be really quite horribly complicated to do this on your own, but it can be done.
Worth keeping in mind that Unity simply isn’t a 3D modeling program, and the more features you want that go in that direction, the easier it would be to just use Blender or something instead. Additional information about your problem, in as clear of English as you can make it, would really go a long way in enabling us to help you further. Some picture or video examples, if you have them, of the kind of thing you want to do would be good too.