movePivot Problems or misunderstanding

Software: Away3D 4.x

enguer, Newbie
Posted: 07 September 2012 08:36 AM   Total Posts: 6

Hello,
I have a little prob with movePivot or MeshHelper.applyPosition.
I’va made a little example to reproduce my problem.
This is the scene init:

_Cube = new Mesh(new CubeGeometry(150,600,50),new ColorMaterial(0xff0000));
_Cube2 = new Mesh(new CubeGeometry(220,1000,50),new ColorMaterial(0x00ff00));
_Scene.addChild(_Cube);
_Scene.addChild(_Cube2);

addEventListener(MouseEvent.MOUSE_DOWNonMouseDown); 

A very simple scene with only a render on onEnterframe.
And this is the click handler:

private function onMouseDown(event:MouseEvent) : void {
      _Cube
.movePivot(0,-300,0);

This dont works.

the pivot move when i do this (it move but not as i expected):

private function onMouseDown(event:MouseEvent) : void {
      _Cube
.movePivot(0,-300,0);
      
_Cube.scale(1.1);

??? am i wrong ?

   

enguer, Newbie
Posted: 07 September 2012 01:32 PM   Total Posts: 6   [ # 1 ]

nobody is facing the same problem ? (away3D GOLD 4.0.9)

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X