fixed buoyancy; implemented CAutomobile::ProcessBuoyancy

This commit is contained in:
aap
2019-07-24 23:06:48 +02:00
parent ae69aaf5ce
commit 93d55bd029
6 changed files with 146 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
#pragma once
class Physical;
class CPhysical;
enum tWaterLevel
{
@@ -33,7 +33,7 @@ public:
char m_field_B9;
bool m_isBoat;
float m_volumeUnderWater;
CVector m_impulse;
CVector m_impulsePoint;
bool ProcessBuoyancy(CPhysical *phys, float buoyancy, CVector *impulse, CVector *point);
void PreCalcSetup(CPhysical *phys, float buoyancy);