Skip to content

Commit a95ed1d

Browse files
committed
Some changes that I'd hope make it more accurate, but I can't seem to quite get there
1 parent 16673ba commit a95ed1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Entities/AHuman.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,10 +946,10 @@ float AHuman::EstimateJumpHeight() const {
946946

947947
Vector globalAcc = g_SceneMan.GetGlobalAcc() * g_TimerMan.GetDeltaTimeSecs();
948948
Vector currentVelocity = Vector(0.0F, -impulseBurst);
949-
float totalHeight = 0.0F;
949+
float totalHeight = currentVelocity.GetY() * g_TimerMan.GetDeltaTimeSecs() * c_PPM;
950950
do {
951951
currentVelocity += globalAcc;
952-
totalHeight += currentVelocity.GetY();
952+
totalHeight += currentVelocity.GetY() * g_TimerMan.GetDeltaTimeSecs() * c_PPM;
953953
if (fuelTime > 0.0F) {
954954
currentVelocity.m_Y -= impulseThrust;
955955
fuelTime -= g_TimerMan.GetDeltaTimeMS() * fuelUseMultiplier;

0 commit comments

Comments
 (0)