mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-16 14:44:08 +00:00
CPickups
This commit is contained in:
parent
6fe3d38ce2
commit
72e12f6aae
8 changed files with 1174 additions and 85 deletions
|
@ -204,6 +204,22 @@ public:
|
|||
m_matrix.at.y = 0.0f;
|
||||
m_matrix.at.z = 1.0f;
|
||||
}
|
||||
void SetRotateZOnlyScaled(float angle, float scale) {
|
||||
float c = Cos(angle);
|
||||
float s = Sin(angle);
|
||||
|
||||
m_matrix.right.x = c * scale;
|
||||
m_matrix.right.y = s * scale;
|
||||
m_matrix.right.z = 0.0f;
|
||||
|
||||
m_matrix.up.x = -s * scale;
|
||||
m_matrix.up.y = c * scale;
|
||||
m_matrix.up.z = 0.0f;
|
||||
|
||||
m_matrix.at.x = 0.0f;
|
||||
m_matrix.at.y = 0.0f;
|
||||
m_matrix.at.z = scale;
|
||||
}
|
||||
void SetRotateZ(float angle){
|
||||
SetRotateZOnly(angle);
|
||||
m_matrix.pos.x = 0.0f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue