[Papervision3D] rotation about some axis
dsdsdsdsd
shannonhburnett at hotmail.com
Fri Aug 21 05:54:09 PDT 2009
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
--
View this message in context: http://www.nabble.com/rotation-about-some-axis-tp25074840p25079254.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list