mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 06:07:57 +03:00
Fixed vehicle collision orientation
This commit is contained in:
parent
c40d073d7a
commit
b0e597cf55
1 changed files with 1 additions and 1 deletions
|
@ -1502,7 +1502,7 @@ void VehicleTurretGun::UpdateCollisionEntity()
|
||||||
vec3_t axis[3];
|
vec3_t axis[3];
|
||||||
vec3_t mat[3];
|
vec3_t mat[3];
|
||||||
|
|
||||||
AnglesToAxis(m_vLocalAngles, mat);
|
AnglesToAxis(m_vLocalAngles, axis);
|
||||||
MatrixMultiply(axis, m_mBaseOrientation, mat);
|
MatrixMultiply(axis, m_mBaseOrientation, mat);
|
||||||
MatrixToEulerAngles(mat, newAngles);
|
MatrixToEulerAngles(mat, newAngles);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue