summaryrefslogtreecommitdiffstats
path: root/src/entities/Physical.h
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2021-01-20 23:00:39 +0100
committerFire-Head <Fire-Head@users.noreply.github.com>2021-01-20 23:00:39 +0100
commit4ba19c9556a94cba65a5033467e9fe2346f604bb (patch)
tree79620db1c87618fddbe9866d6c7019ee67f64e57 /src/entities/Physical.h
parentMerge pull request #1 from GTAmodding/lcs (diff)
parentfix (diff)
downloadre3-4ba19c9556a94cba65a5033467e9fe2346f604bb.tar
re3-4ba19c9556a94cba65a5033467e9fe2346f604bb.tar.gz
re3-4ba19c9556a94cba65a5033467e9fe2346f604bb.tar.bz2
re3-4ba19c9556a94cba65a5033467e9fe2346f604bb.tar.lz
re3-4ba19c9556a94cba65a5033467e9fe2346f604bb.tar.xz
re3-4ba19c9556a94cba65a5033467e9fe2346f604bb.tar.zst
re3-4ba19c9556a94cba65a5033467e9fe2346f604bb.zip
Diffstat (limited to 'src/entities/Physical.h')
-rw-r--r--src/entities/Physical.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/entities/Physical.h b/src/entities/Physical.h
index 926b9762..290c267c 100644
--- a/src/entities/Physical.h
+++ b/src/entities/Physical.h
@@ -158,8 +158,8 @@ public:
void ApplyFrictionTurnForce(const CVector &j, const CVector &p) { ApplyFrictionTurnForce(j.x, j.y, j.z, p.x, p.y, p.z); }
// springRatio: 1.0 fully extended, 0.0 fully compressed
bool ApplySpringCollision(float springConst, CVector &springDir, CVector &point, float springRatio, float bias);
- bool ApplySpringCollisionAlt(float springConst, CVector &springDir, CVector &point, float springRatio, float bias, CVector &forceDir);
- bool ApplySpringDampening(float damping, CVector &springDir, CVector &point, CVector &speed);
+ bool ApplySpringCollisionAlt(float springConst, CVector &springDir, CVector &point, float springRatio, float bias, CVector &forceDir, float &impulse);
+ bool ApplySpringDampening(float damping, float dampingLimit, CVector &springDir, CVector &point, CVector &speed);
void ApplyGravity(void);
void ApplyFriction(void);
void ApplyAirResistance(void);
@@ -174,4 +174,8 @@ public:
bool ProcessCollisionSectorList(CPtrList *lists);
bool CheckCollision(void);
bool CheckCollision_SimpleCar(void);
+
+ // TEMP
+ bool ApplySpringCollisionAlt(float springConst, CVector &springDir, CVector &point, float springRatio, float bias, CVector &forceDir);
+ bool ApplySpringDampening(float damping, CVector &springDir, CVector &point, CVector &speed);
};