question about worldMatrix

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Epi
Posts: 9
Joined: Wed Mar 04, 2009 4:27 am

question about worldMatrix

Post by Epi »

hi,

i just read the matrix stuff in the dirextX sdk manual about worldTransformation and there is something i don't get:D

the manual says that the worldMatrix is used to translate/rotate an object from its local coords into worldcoords and there is an example which goes like:

Code: Select all

void C3DModel::MakeWorldMatrix( D3DXMATRIX* pMatWorld )
{
     //...
}
so, if i got everything right, every object would have its own worldMatrix to transform it into a global position and rotation, so what exactly is this function doing:

Code: Select all

virtual const core::matrix4& irr::video::IVideoDriver::getTransform  	(  	E_TRANSFORMATION_STATE   	 state  	 )   	 const
if i'm using video::ETS_WORLD, to get the worldMatrix?

i mean if every object need its own matrix for transformation into worldCoords, what is this matrix for?
Post Reply