diff options
author | aap <aap@papnet.eu> | 2020-04-05 14:31:04 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-04-05 14:31:04 +0200 |
commit | d039409a6172c34b7bf74069c213d46b37f982c4 (patch) | |
tree | f3557226f72c8bcc0208b8e35232fff393aec5c1 /src | |
parent | Merge branch 'master' of github.com:gtamodding/re3 (diff) | |
parent | Merge pull request #378 from aap/master (diff) | |
download | re3-d039409a6172c34b7bf74069c213d46b37f982c4.tar re3-d039409a6172c34b7bf74069c213d46b37f982c4.tar.gz re3-d039409a6172c34b7bf74069c213d46b37f982c4.tar.bz2 re3-d039409a6172c34b7bf74069c213d46b37f982c4.tar.lz re3-d039409a6172c34b7bf74069c213d46b37f982c4.tar.xz re3-d039409a6172c34b7bf74069c213d46b37f982c4.tar.zst re3-d039409a6172c34b7bf74069c213d46b37f982c4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Garages.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp index 68d58b10..7e9fc0fa 100644 --- a/src/control/Garages.cpp +++ b/src/control/Garages.cpp @@ -1464,8 +1464,9 @@ void CGarage::UpdateDoorsHeight() void CGarage::BuildRotatedDoorMatrix(CEntity * pDoor, float fPosition) { float fAngle = -fPosition * HALFPI; - CVector r(-Sin(fAngle) * pDoor->GetForward().x, Sin(fAngle) * pDoor->GetForward().y, Cos(fAngle) * pDoor->GetForward().z); - pDoor->GetRight() = CrossProduct(r, pDoor->GetForward()); + CVector up(-Sin(fAngle) * pDoor->GetForward().y, Sin(fAngle) * pDoor->GetForward().z, Cos(fAngle)); + pDoor->GetRight() = CrossProduct(up, pDoor->GetForward()); + pDoor->GetUp() = up; } void CGarage::UpdateCrusherAngle() |