Cannnot access the method updateVxData

Software: Away3D 4.x

polig, Newbie
Posted: 19 December 2012 12:07 AM   Total Posts: 18

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=0i<segH segWi++) {
 vx[i 
0] rbPoint[i].position.x;
 
vx[i 1] rbPoint[i].position.y;
 
vx[i 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 ?

 

   

Avatar
loth, Sr. Member
Posted: 19 December 2012 04:07 PM   Total Posts: 236   [ # 1 ]

humm add this

_subGeometry = SubGeometry(mesh.geometry.subGeometries[0]);
_subGeometry.autoDeriveVertexNormals = false;
_subGeometry.autoDeriveVertexTangents = false;

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X