finished CPhysical

This commit is contained in:
aap 2019-07-07 11:13:12 +02:00
parent 533f265f55
commit 219a65b81a
3 changed files with 55 additions and 11 deletions

View file

@ -144,7 +144,7 @@ void CUpsideDownCarCheck::Init()
bool CUpsideDownCarCheck::IsCarUpsideDown(int32 id)
{
CVehicle* v = CPools::GetVehiclePool()->GetAt(id);
return v->GetMatrix().GetUp()->z <= -0.97f &&
return v->GetUp().z <= -0.97f &&
v->GetMoveSpeed().Magnitude() < 0.01f &&
v->GetTurnSpeed().Magnitude() < 0.02f;
}