mirror of
https://github.com/halpz/re3.git
synced 2025-04-30 06:27:59 +03:00
finished CPhysical
This commit is contained in:
parent
533f265f55
commit
219a65b81a
3 changed files with 55 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue