How to specify point around which to rotate object ?
im using following directx functioms
to move object:
D3DXMatrixTranslation( &m, lpvMovement->x, lpvMovement->y, lpvMovement->z ); mat *= m;to rotate object:
D3DXMatrixRotationYawPitchRoll( &m, lpvRotation->x, lpvRotation->y, lpvRotation->z ); mat *= m;lpvRotation points to vector that specifies how much to rotate.
lpvMovement points to vector that specifies how much to move.
later, before object is to be rendered im using mat matrix to set its placment:
pDev3d->SetTransform( D3DTS_WORLD, &mat ); lpcMesh->Render( pDev3d );
how to put together this + rotation around specified point?