1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 11:29:59 +00:00

fix garages

This commit is contained in:
Nikolay Korolev 2020-05-12 14:07:47 +03:00 committed by GitHub
parent fab453efde
commit 1afe36d0d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1471,7 +1471,7 @@ void CGarage::UpdateDoorsHeight()
void CGarage::BuildRotatedDoorMatrix(CEntity * pDoor, float fPosition) void CGarage::BuildRotatedDoorMatrix(CEntity * pDoor, float fPosition)
{ {
float fAngle = -fPosition * HALFPI; float fAngle = -fPosition * HALFPI;
CVector up(-Sin(fAngle) * pDoor->GetForward().y, Sin(fAngle) * pDoor->GetForward().z, Cos(fAngle)); CVector up(-Sin(fAngle) * pDoor->GetForward().y, Sin(fAngle) * pDoor->GetForward().x, Cos(fAngle));
pDoor->GetRight() = CrossProduct(up, pDoor->GetForward()); pDoor->GetRight() = CrossProduct(up, pDoor->GetForward());
pDoor->GetUp() = up; pDoor->GetUp() = up;
} }