   Converting a PhyX matrix to a Dx Matrix
  Hi i have had a look and i can't find out the layout of the PhyX matrix is there any functions that people have created to do this.I have a function to convert a Tokamak matrix to a Dx one:#define NET3_TO_D3DXMATRIX( tmat )   D3DXMATRIX( tmat.rot[0][0], tmat.rot[0][1], tmat.rot[0][2], 0.0f,   tmat.rot[1][0], tmat.rot[1][1], tmat.rot[1][2], 0.0f,    tmat.rot[2][0], tmat.rot[2][1], tmat.rot[2][2], 0.0f,    tmat.pos[0],    tmat.pos[1],    tmat.pos[2],    1.0f );but how do i do a similar thing with the PhyX matrices?Jamescobras[Edited by - JamesCobras on May 8, 2009 2:07:52 AM]
  Take a look at some of my samples, they're a little dated now but I'm sure the matrix conversion functions are still valid.http://www.applicachia.com   ;  It's been a while since I used PhysX (about a year, year and a half) but back then they had the same exact layout in memory, so you could just fast to a float*.  I doubt they've changed that since then....   ;  Got it thanks guys   //(cube is a pointer to NxActor)   //(NxActor* cube = NULL;)   D3DXMATRIX matModel;cube->getGlobalPose().getColumnMajor44(matModel);plane.Transform(matModel);JamesCobras   