Hello I have serious problems with positioning primitives in stage space
When i create a plane
plane=new Plane(defmaterial,100,100);
plane.x=0;
plane.z=0;
plane.y=0;
everything is fine
but when I try to create cube of the plane size after clicking the plane I don’t get expected result :(
var cube:Cube=new Cube(defmate,100,100,100)
cube.x=0;
cube.y=0;
cube.z=0;
z and x axis are fine but y is not… half of the cube is submerged beneath the plain
after I correct cube.y to 50 (cube.y=50); I get what I want.
When I try to build cube with depth greater then 100 ex.
new Cube(defmate,100,100,300)
cube.x=0;
cube.y=0;
cube.z=0;
it seems the cube grows in both directions of z axis
i don’t know why it happens like this :(
for me this is very strange because if I define cube vertex (0,0,0) I except
7 other vertices like this
(0,0,0) lower front left
(100,0,0) lower front right
(0,100,0) upper front left
(100,100,0) upper front right
(0,0,100) lower back left
(100,0,100) lower back right
(0,100,100) upper back left
(100,100,100) upper back right