mirror of
https://github.com/GTAmodding/re3.git
synced 2021-02-19 17:49:54 +01:00
fix garages
This commit is contained in:
parent
30b3f34d91
commit
4b566c26a3
@ -1423,7 +1423,7 @@ void CGarage::UpdateDoorsHeight()
|
||||
void CGarage::BuildRotatedDoorMatrix(CEntity * pDoor, float fPosition)
|
||||
{
|
||||
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->GetUp() = up;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user