for (var i : int =0; i < _numPlanes; i++) {
var plane : Mesh = Mesh(srcplane.clone());
plane.material = _material2;
plane.x = (Math.random()-.5)*512;
plane.y = (Math.random()-.5)*384;
if ( isFirst ) {
var x = plane.x;
var y = plane.y;
var z = plane.z;
isFirst = false;
} else {
var line:LineSegment = new LineSegment(new Vector3D(x,y,z+1),new Vector3D(plane.x,plane.y,plane.z+1),0x8cb1d6,0x8cb1d6,2);
lines.addSegment(line);
linesVector.push(line);
}
_view.scene.addChild(plane);
}
_view.scene.addChild(lines);
_view.backgroundColor = 0xE2E5EA;
addChild(_view);
In android ,it’s good. but in ipad,I can’t see the Line..