[Papervision3D] rotationX/Y/Z rotate from the center of an object. can i rotate from its edge??
tim.knip at gmail.com
Mon Dec 10 11:56:20 PST 2007
oops: and then rotate the 'dummy'...
2007/12/10, Tim Knip <tim.knip at gmail.com>:
> Create a 'dummy' object an attach the plane to that:
> var dummy:DisplayObject3D = new DisplayObject3D();
> var plane:Plane = new Plane();
> dummy.addChild( plane );
> plane.x = ...; // move half the plane width or something...
> scene.addChild( plane );
> 2007/12/10, brisque <unholylamp at gmail.com>:
> > lets say i have a big flat plane floating in space. if i modify its
> > rotationX/rotationY/rotationZ, it seems to rotate from the center axis of
> > the plane.
> > however, what if i want to rotate it from its edge.. like, imagine an
> > upright wall falling down. its rotation axis would basically be the bottom
> > edge of it, so it would be like
> > some_sort_of_rotation based on (centerY + (plane.height / 2));
> > but i have no idea how to do this. any suggestions
> > --
> > View this message in context: http://www.nabble.com/rotationX-Y-Z-rotate-from-the-center-of-an-object.-can-i-rotate-from-its-edge---tp14259537p14259537.html
> > Sent from the Papervision3D mailing list archive at Nabble.com.
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
More information about the Papervision3D