[Papervision3D] rotation about some axis

Mark I. Ross nospam at therossman.org
Fri Aug 21 14:42:11 PDT 2009


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 at
> http://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 
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090821/9a0c7599/attachment.html>


More information about the Papervision3D mailing list