myCube.vertices[number] << change where it says "number"

Try a different number there, Most likely it is 0,1,2,3 for the 4 vertices
you need to change. If not maybe 4,5,6,7 ?

-Pete

On Thu, Oct 29, 2009 at 1:25 PM, jordi monty <[email protected]>wrote:

>
> Yes, but how to find this top vertices?
>
> On 28 oct, 16:34, Peter Kapelyan <[email protected]> wrote:
> > You can do the same as tain said, with the cube, if you find out which 4
> > vertices are the top ones, and then something like
> >
> > myCube.vertices[number].x*=.7;//or some number
> > myCube.vertices[number].z*=.7;//or some number
> >
> > Something like that should work.
> >
> > -Pete
> >
> >
> >
> >
> >
> > On Wed, Oct 28, 2009 at 11:17 AM, tain <[email protected]> wrote:
> >
> > > trapeziod?http://en.wikipedia.org/wiki/Trapezoid
> >
> > > create a plane and modify first two vertices (modify trough Array
> > > "plane.vertices")
> >
> > > hth
> > > :)
> >
> > > On Oct 28, 12:45 pm, jordi monty <[email protected]> wrote:
> > > > Hi, I need to create a 3D trapezoid by code. Is there a way to create
> > > > a Cube and then modify some of its vertex? I think it's possible, but
> > > > I'm newbie in away3d.
> >
> > > > Thanks!
> >
> > --
> > ___________________
> >
> > Actionscript 3.0 Flash 3D Graphics Engine
> >
> > HTTP://AWAY3D.COM- Ocultar texto de la cita -
> >
> > - Mostrar texto de la cita -




-- 
___________________

Actionscript 3.0 Flash 3D Graphics Engine

HTTP://AWAY3D.COM

Reply via email to