mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-26 19:14:15 +01:00
fix garages
This commit is contained in:
parent
fab453efde
commit
1afe36d0d0
@ -1471,7 +1471,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