7 protected vector m_vTranslation;
8 protected vector m_vRotation;
9 protected float m_fFovScale = 1.0;
10 protected bool m_bIsRunning;
12 override bool IsRunning()
17 override void Apply(inout vector transformMatrix[4], inout
float fieldOfView)
19 vector shakeMatrix[4];
20 Math3D.AnglesToMatrix(m_vRotation, shakeMatrix);
21 shakeMatrix[3] = m_vTranslation;
23 vector modifiedMatrix[4];
24 Math3D.MatrixMultiply4(transformMatrix, shakeMatrix, modifiedMatrix);
25 transformMatrix[0] = modifiedMatrix[0];
26 transformMatrix[1] = modifiedMatrix[1];
27 transformMatrix[2] = modifiedMatrix[2];
28 transformMatrix[3] = modifiedMatrix[3];
35 m_vTranslation = vector.Zero;
36 m_vRotation = vector.Zero;