Getting the current rotation around the Y axis of a node

Eldritch

19-03-2007 18:54:55

Is it possible somehow to get the current rotation around the Y axis of a SceneNode? I have a 3rd person camera set up that is only missing this small portion of code. I have the following:


Matrix3 rotMat = m_refChaseTarget.Orientation.ToRotationMatrix();
Vector3 nodeRot = new Vector3(mat3Rot.m00, mat3Rot.m10, mat3Rot.m20);


Note: m_refChaseTarget is a SceneNode reference.

But that does not seem to be correct.