diff options
author | aap <aap@papnet.eu> | 2020-05-31 17:05:49 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-31 17:05:59 +0200 |
commit | 21ce0a4b28a1842dad91433362d250089ec491b8 (patch) | |
tree | 8c661c49f994d95de6997e0bf4f71cb0ab41dd05 /src/entities | |
parent | 00dc86917eca1b6628446f8a3f80f15855050d2c (diff) |
CAutomobile done
Diffstat (limited to 'src/entities')
-rw-r--r-- | src/entities/Physical.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/entities/Physical.cpp b/src/entities/Physical.cpp index 02feb5cb..f97194d0 100644 --- a/src/entities/Physical.cpp +++ b/src/entities/Physical.cpp @@ -478,7 +478,9 @@ CPhysical::ApplySpringCollisionAlt(float springConst, CVector &springDir, CVecto if(DotProduct(springDir, forceDir) > 0.0f) forceDir *= -1.0f; float step = Min(CTimer::GetTimeStep(), 3.0f); - float impulse = -GRAVITY*m_fMass*step * springConst * compression * bias*2.0f; + float impulse = GRAVITY*m_fMass*step * springConst * compression * bias*2.0f; + if(bIsHeavy) + impulse *= 0.75f; ApplyMoveForce(forceDir*impulse); ApplyTurnForce(forceDir*impulse, point); } |