Hi
Actually, I’m trying to use the AS3Mod library with the latest Away3D version, and i’m getting some troubles.
It seems that the property ‘updateIndexData’ is no longer available. Here’s the code i’m using (based from AS3Mod tutorial for clothes simulation).
var geometry:PlaneGeometry = new PlaneGeometry(300, 200, 12, 12, true);
var indices:Vector.<uint> = geometry.subGeometries[0].indexData.slice();
var sil:uint = indices.length;
for (var i:int = 0; i < sil; i += 3) {
indices.push(indices[i + 2], indices[i + 1], indices[i]);
geometry.subGeometries[0].indexData.push(indices[i + 2], indices[i + 1], indices[i]);
}
geometry.subGeometries[0].updateIndexData(indices);
this.mesh = new Mesh(geometry, textureMat);
Thanks guys