Where is the rotation in a Matrix4f?

Hello,
I’m not to good at matrices sorry.
Could anyone tell me which part of the Matrix has the rotation?

I have a ViewTransform and I want to get its direction(angle) and then set the transform to rotate the MD3 model I have to be in the same direction as the view.

Thanks for any help :-).
SEZ

P.S. This is my first post :-D, I’ve been viewing the forum for a while :-).

[quote]Hello,
I’m not to good at matrices sorry.
Could anyone tell me which part of the Matrix has the rotation?
[/quote]
The rotational component is the upper left 3x3 matrix.

Thanks for that seesm to be moving me along :-).

But I find that the players model, although it turns with the view in changes in size up and down as I turn and then goes back to normal at the rear of where it started been OK.

Here is what I’m doing:

    Transform3D playerTrans = player.getTransform();
    
    Matrix3f pm3f = new Matrix3f();
    pm3f = playerTrans.getRotation(pm3f);
  
    Matrix3f vm3f = new Matrix3f();
    vm3f = viewTransform.getRotation(vm3f);
    
    pm3f.m00 = vm3f.m00;
    pm3f.m02 = vm3f.m02;
    
    pm3f.m20 = vm3f.m20;
    pm3f.m22 = vm3f.m22;
    
    playerRotTrans.setRotation(pm3f);
       
    player.setTransform(playerTrans);

Thanks again :slight_smile:

SEZ

Oh sorry about that, I just fixed it I had a transfrom below which I thought was needed to change the scale of the model, and well it seems it was doing it.

Thanks very much :-D.