scale and component

Started by
1 comment, last by giugio 15 years, 4 months ago
Hy. I have a mesh to rotate by this parameters: <rotate>0.57735 0.57735 0.57735 -240</rotate> -240 is the angle ok , but the probably vector 0.57735 0.57735 0.57735? I must scale in x,y or z component ? and how scale for each component? Thanks
Advertisement
Looks like that might be the x,y,z component of the axis around which to rotate by 240 degrees?

Visit http://www.mugsgames.com

Stroids, a retro style mini-game for Windows PC. http://barryskellern.itch.io/stroids

Mugs Games on Twitter: [twitter]MugsGames[/twitter] and Facebook: www.facebook.com/mugsgames

Me on Twitter [twitter]BarrySkellern[/twitter]

mmm....
i use directx , how set up rotation with
<rotate>0.57735 0.57735 0.57735 -240</rotate>
i have :
D3DXMatrixRotationX(&mxRotate1,-240);
D3DXMatrixRotationY(&mxRotate2,-240);
D3DXMatrixRotationZ(&mxRotate3,-240);

where mxRotate1,2,3 are D3DXMATRIX


what is the function for rotate the object?
thanks

This topic is closed to new replies.

Advertisement