Hi, developer team. I would like to know how to move the vertex points. I need to express movement of a cloth . please see my demo.
http://polygon-gmen.com/test_away3d.html
this demo is generated by Away3D 4.0.0 beta. please see the following code.
var vx : Vector.<Number> = mesh.geometry.subGeometries[0].vertexData;
for (var i:uint=0; i<segH * segW; i++) {
vx[i * 3 + 0] = rbPoint[i].position.x;
vx[i * 3 + 1] = rbPoint[i].position.y;
vx[i * 3 + 2] = rbPoint[i].position.z;
}
mesh.geometry.subGeometries[0].updateVertexData(vx);
updateVertexData could access in Away3D 4.0.0 beta , but in Away3D 4.1 alpha cannot access. subGeometry was changed to the ISubGeometry .
Is it impossible to express like this in Away3D 4.1 alpha ?