mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 14:29:00 +00:00
shoreside garage fix
This commit is contained in:
parent
bd0cd13be1
commit
30b8d7300b
1 changed files with 3 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue