how to get a cube's depth

View: New views
1 Messages — Rating Filter:   Alert me  

how to get a cube's depth

by jared stanley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hey all,

I basically need to do something like:

cube = new Cube();
cube.z = cube.depth/2

However I cannot get the 'depth' property. Is this possible?

Thanks!

Jared

More Details Below:

A. I have a cube on stage, it's 300 x 300 x 100, so it's short and
squatty like a pancake. I rotate it around horizontally as the user
navigates the subNav and it looks great, essentially replacing the
first 300x100 cube face with a new one.

B. When the user navigates the mainNav, the box will need to rotate
vertically to the top of the box; this plane is 300 x 300 so a resize
of the box is necessary to 300 x 100 x 100, like a tube shape.

C. When I remove the first cube and replace it with the second one,
the front plane appears to be set further back. I assume this is
because the cube is created and placed on it's center point. I would
like to create the cube and then have it reposition on it's front
edge, so that it appears to be in the same spot regardless of depth.

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org