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_DOWN, onMouseDown);
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 ?