We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16673ba commit a95ed1dCopy full SHA for a95ed1d
Source/Entities/AHuman.cpp
@@ -946,10 +946,10 @@ float AHuman::EstimateJumpHeight() const {
946
947
Vector globalAcc = g_SceneMan.GetGlobalAcc() * g_TimerMan.GetDeltaTimeSecs();
948
Vector currentVelocity = Vector(0.0F, -impulseBurst);
949
- float totalHeight = 0.0F;
+ float totalHeight = currentVelocity.GetY() * g_TimerMan.GetDeltaTimeSecs() * c_PPM;
950
do {
951
currentVelocity += globalAcc;
952
- totalHeight += currentVelocity.GetY();
+ totalHeight += currentVelocity.GetY() * g_TimerMan.GetDeltaTimeSecs() * c_PPM;
953
if (fuelTime > 0.0F) {
954
currentVelocity.m_Y -= impulseThrust;
955
fuelTime -= g_TimerMan.GetDeltaTimeMS() * fuelUseMultiplier;
0 commit comments