diff options
author | Fire_Head <Fire-Head@users.noreply.github.com> | 2019-06-13 02:47:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-13 02:47:13 +0200 |
commit | 9689def6a59bd8a1d05860c7d23f1837cf3b4a80 (patch) | |
tree | cbd5cdfcb16bb993ca4b75552a48eab641541b77 /src/entities/Physical.cpp | |
parent | Update Replay.h (diff) | |
parent | silly mistake (diff) | |
download | re3-9689def6a59bd8a1d05860c7d23f1837cf3b4a80.tar re3-9689def6a59bd8a1d05860c7d23f1837cf3b4a80.tar.gz re3-9689def6a59bd8a1d05860c7d23f1837cf3b4a80.tar.bz2 re3-9689def6a59bd8a1d05860c7d23f1837cf3b4a80.tar.lz re3-9689def6a59bd8a1d05860c7d23f1837cf3b4a80.tar.xz re3-9689def6a59bd8a1d05860c7d23f1837cf3b4a80.tar.zst re3-9689def6a59bd8a1d05860c7d23f1837cf3b4a80.zip |
Diffstat (limited to 'src/entities/Physical.cpp')
-rw-r--r-- | src/entities/Physical.cpp | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/entities/Physical.cpp b/src/entities/Physical.cpp index 9cd36070..33e2deff 100644 --- a/src/entities/Physical.cpp +++ b/src/entities/Physical.cpp @@ -15,6 +15,60 @@ #include "Automobile.h" #include "Physical.h" +CPhysical::CPhysical(void) +{ + int i; + + fForceMultiplier = 1.0f; + m_vecMoveSpeed = CVector(0.0f, 0.0f, 0.0f); + m_vecTurnSpeed = CVector(0.0f, 0.0f, 0.0f); + m_vecMoveFriction = CVector(0.0f, 0.0f, 0.0f); + m_vecTurnFriction = CVector(0.0f, 0.0f, 0.0f); + m_vecMoveSpeedAvg = CVector(0.0f, 0.0f, 0.0f); + m_vecTurnSpeedAvg = CVector(0.0f, 0.0f, 0.0f); + + m_movingListNode = nil; + m_nStaticFrames = 0; + + m_nCollisionRecords = 0; + for(i = 0; i < 6; i++) + m_aCollisionRecords[0] = nil; + + field_EF = false; + + m_nDamagePieceType = 0; + m_fDamageImpulse = 0.0f; + m_pDamageEntity = nil; + m_vecDamageNormal = CVector(0.0f, 0.0f, 0.0f); + + bUsesCollision = true; + uAudioEntityId = -5; + unk1 = 100.0f; + m_vecCentreOfMass = CVector(0.0f, 0.0f, 0.0f); + field_EC = 0; + + bIsHeavy = false; + bAffectedByGravity = true; + bInfiniteMass = false; + bIsInWater = false; + bHitByTrain = false; + m_phy_flagA80 = false; + + m_fDistanceTravelled = 0.0f; + m_pedTreadable = nil; + m_carTreadable = nil; + + m_phy_flagA10 = false; + m_phy_flagA20 = false; + + m_nLastCollType = 0; +} + +CPhysical::~CPhysical(void) +{ + m_entryInfoList.Flush(); +} + void CPhysical::Add(void) { |