« Return to Thread: changing rotation pivot

Re: changing rotation pivot

by Ralph Hauwert :: Rate this Message:

Reply to Author | View in Thread

It would be, really. Until someone writes it, you'll have to do it with something like this though :

var pivot:DisplayObject3D  = new DisplayObject3D();
var obj:Sphere = new Sphere(material);
pivot.addChild (sphere);
scene.addChild(pivot);

//The this does the rotation.
sphere.x = 400;
pivot.rotationY = 90;



On Jan 4, 2008 10:36 AM, blackdice <ih32_32@...> wrote:


I have been searching this form for an easy way
to change the DisplayObject3D pivot
i found a trick say
create a new DisplayObject3D and call it pivot then add the cube as a child
but i don't get it
Anyone explain it to me?
i want to rotate my DisplayObject3D from the center

Wouldn't it be easy if there is a registration Point for
changing the pivot?

--
View this message in context: http://www.nabble.com/changing-rotation-pivot-tp14613233p14613233.html
Sent from the Papervision3D mailing list archive at Nabble.com.


_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org



--
Ralph Hauwert
_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

 « Return to Thread: changing rotation pivot