Binding empty gameobjects representing model vertices to the mesh

Well, I’m loading custom format 3d models at runtime, and I’m now trying to create an empty gameobject for every vertex of that mesh and skin it, bind it to the mesh so then when I move any of those empty game objects, they would deform the mesh as well.

How could I do that? I mean so far I know how to create the mesh, create empty game obejct for every vertex the model has and position those gameobjects to the vertices positions so every vertex has an empty game object in same position. What I don’t get now though is how I could bind those empty gameobjects with the mesh. I tried reading through the docs but it didn’t work at all for me, it made the model invisible :S

Thanks

Why use empty GameObjects when you can add scripts to make them act as Vertices.
Such as in C# im using:
GameObject go = ( GameObject ) new GameObject( “Vertex”+id, typeof( Vertex ) );

In Vertex script that is MonoBehaviour you could do:

void Update()
{
position = transform.position;
}

As to deforming mesh you have to copy positions of vertices to the mesh as an array.
mesh.vertices = verticesPositionsArray;
you cant do:
mesh.vertices = verticePosition;
Hope this helps a bit.