What about scaleY = -1;
but do it in your editor, otherwize the normals will be flipped
causing inverted faces. Its easyer to do it at the source.
Sent from an iPhone without Flash
On Mar 21, 2010, at 14:06, Vadim <[email protected]> wrote:
Also, i can't understand how negative scaling of models can help
invert global Y axis.
http://i44.tinypic.com/2gv7rxz.png This is screen of coordinate system
thats i getting by this code:
package
{
import away3dlite.containers.View3D
import away3dlite.primitives.Cube6;
import away3dlite.cameras.Camera3D;
import flash.display.Sprite;
[SWF(width="500", height="400", frameRate="60",
backgroundColor="#FFFFFF")]
public class AwayLiteCube extends Sprite
{
public function AwayLiteCube()
{
// create a viewport
var view:View3D = new View3D();
view.x = 250;
view.y = 200;
var camera:Camera3D = new Camera3D;
camera.x = 0;
camera.y = 0;
view.camera = camera;
addChild(view);
camera.z = -300;
var cube:Cube6 = new Cube6();
cube.scaleX = 0.1;
cube.scaleY = 0.1;
cube.scaleZ = 0.1;
cube.y = 50;
cube.x = 0;
view.scene.addChild(cube);
view.render();
}
}
}
As you can see, cube is placed under the x axis, but it's have +60 Y
coordinate. But event in Prefab if i place cube at +60 Y it's must be
over the X axis. So i think it's look like a bug or my mistake/
misunderstanding.
To unsubscribe from this group, send email to away3d-dev
+unsubscribegooglegroups.com or reply to this email with the words
"REMOVE ME" as the subject.
To unsubscribe from this group, send email to away3d-dev+unsubscribegooglegroups.com or
reply to this email with the words "REMOVE ME" as the subject.