updating geometry

Software: Away3D 4.x

Avatar
FlyOn, Jr. Member
Posted: 20 April 2012 12:15 PM   Total Posts: 36

Hi,

I’m trying to update the geometry that several objects share.

geo = new PlaneGeometry();
mesh = new Mesh(geo, new ColorMaterial(0x0ff0f0));
mesh2 = new Mesh(geo, new ColorMaterial(0xffff00));
mesh2.200;
mesh2.200;
scene.addChild(mesh);
scene.addChild(mesh2);
geo.width 400

this will show two planes with 400 as width

But if I remove the line

geo.width 400 

and add it to some onClick eventHandler, the planes remain square even though the code is executed and tracing geo.width shows 400…

Do I need to call anything to make the objects update their geometry or something?

   

Ontheronix, Jr. Member
Posted: 22 April 2012 01:20 PM   Total Posts: 37   [ # 1 ]

Width and height are default set at 100, so that’s why it’s square.
No clue why it traces 400 if it’s set nowhere, that’s actually impossible smile So recheck your code?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X