DbGetObjectWorldMatrix

Retrieves a D3DXMATRIX containing the location, scaling and rotation of a specified object or limb.

Syntax
void dbGetObjectWorldMatrix ( int iID, int iLimb, D3DXMATRIX* pMatrix )

Usage
A D3DXMATRIX first needs to be declared, and for this we need to include d3dx9.h. We then pass a pointer of this matrix to the function, and it will be filled. D3DXMATRIX matrix; dbGetObjectWorldMatrix(1, 0, &matrix); If you do not want to find a specific limb, use 0 for this.