btw i also added the "camera walking"

On 14 jul, 11:47, desgraci <[email protected]> wrote:
> the order is
> red
> blue
> green
> white
>
> it got some time cause i rewrote the function and the clipping got to
> be rectangular so the lines donest divide itself
> and beside i noticed sometghing that i thought at first it was an as3
> mistake
>
> "http://www.ierafaelperez.co.cc/lineslines.swf";
>
> i use this
>
>                 car1M = new BitmapMaterial(Cast.bitmap(Charmapp1));
>                         car1= new Plane({material:car1M,rotationX:270});
>                         car1.width=640;
>                         car1.height=480;
>                         car1.applyRotations();
>                         car1.bothsides=true;
>                         car1.back=car1M;
>                         scene.addChild(car1);
>             car1.ownCanvas=true;
>             car1.pushfront=true;
>
>                         //animacion
>                 rx2=(Math.round(Math.random() * (10000)) -5000);
>                 ry2=(Math.round(Math.random() * (10000)) -5000);
>                 rz2=(Math.round(Math.random() * (10000)) -5000);
>
>                 var rx3:Number  =new Number(Math.round(Math.random() *
> (10000)) -5000);
>                 var ry3:Number  =new Number(Math.round(Math.random() *
> (10000)) -5000);
>                 var rz3:Number  =new Number(Math.round(Math.random() *
> (10000)) -5000);
>
>                 var rx4:Number  =new Number(Math.round(Math.random() *
> (10000)) -5000);
>                 var ry4:Number  =new Number(Math.round(Math.random() *
> (10000)) -5000);
>                 var rz4:Number  =new Number(Math.round(Math.random() *
> (10000)) -5000);
>                 linea1= new LineSegment({material:"#red"});
>                         linea1.start=new Vertex(rx,ry,rz);
>                         linea1.end=new Vertex(rx3,ry3,rz3);
>                         scene.addChild(linea1);
>                 linea2= new LineSegment({material:"#blue"});
>                         linea2.start=new Vertex(rx3,ry3,rz3);
>                         linea2.end=new Vertex(rx2,ry2,rz2);
>                         scene.addChild(linea2);
>                 linea3= new LineSegment({material:"#green"});
>                         linea3.start=new Vertex(rx2,ry2,rz2);
>                         linea3.end=new Vertex(rx4,ry4,rz4);
>                         scene.addChild(linea3);
>                 linea4= new LineSegment({material:"#white"});
>                         linea4.start=new Vertex(rx4,ry4,rz4);
>                         linea4.end=new Vertex(rx,ry,rz);
>                         scene.addChild(linea4);
>                         aPath0= [
>                         new Number3D(rx,ry,rz),
>                         new Number3D(rx3,ry3,rz3),
>                         new Number3D(rx2,ry2,rz2),
>                         new Number3D(rx2,ry2,rz2),
>                         new Number3D(rx4,ry4,rz4),
>                         new Number3D(rx,ry,rz),
>                         ];
>                         path=new Path(aPath0);
>                 pathanimator0 = new PathAnimator(path,car1,inito2);
>
> the fact is that i have a cube of 10kx10kx10k,x=y=z=0, the random
> shouldnt send me outside but it does, why? i traced the edges of the
> cube (-5000,-5000)(5000,-5000), etc

Reply via email to