[Papervision3D] rotation about some axis

John Brookes jbpv3d at googlemail.com
Fri Aug 21 14:54:33 PDT 2009


well neither did I but guessed he didn't mean rotationX, rotationY, and
rotationZ as seen many posts before.
Rotation about 'some' axis.

and erm gimble lock? :p

2009/8/21 Mark I. Ross <nospam at therossman.org>

>  I still don't really know what the question is.
>
> If you want to rotate around an axis just use rotationX, rotationY, and
> rotationZ as needed?
>
>
> dsdsdsdsd wrote:
>
> John Brookes posted this athttp://forum.papervision3d.org/viewtopic.php?f=14&t=998
>
> var M : DisplayObject3D = my_DO3D          ;
> var X : Number3D         = my_axis             ;
> var a : Number            = my_radian_angle  ;
> var P : Number3D         = my_axis_position  ;
> var D : Matrix3D          = new Matrix3D( )   ;
> var T : Matrix3D           = M.transform       ;
>
> //  this acts on individual vertices:
> //M.geometry.transformVertices( Matrix3D.multiply(
> Matrix3D.rotationMatrixWithReference( X , a , P ) , D  ) ) ;
>
> // this acts on a DO3D's transform:
> M.copyTransform                   ( Matrix3D.multiply(
> Matrix3D.rotationMatrixWithReference( X , a , P ), T ) ) ;
>
>
>
>
> -----
> thanks,
>
> Shannon
>
>
> ...  http://www.toddanddotty.com/OpenHouse3d/try_it.php immersive 3d
> environments
>
> ...  http://goodflagbetsy.wordpress.com/ politics
>
>
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090821/14d5bf01/attachment.html>


More information about the Papervision3D mailing list