Jump for the 2D game is much more responsive, and instantaneous.

This commit is contained in:
Samik Bhowal 2008-07-11 21:37:47 +00:00
parent e19ff9aa06
commit 99bbf03b7d

View File

@ -37,9 +37,6 @@ class TwoDWalker(GravityWalker):
assert self.debugPrint("isAirborne 0 due to isOnGround() true") assert self.debugPrint("isAirborne 0 due to isOnGround() true")
impact = self.lifter.getImpactVelocity() impact = self.lifter.getImpactVelocity()
messenger.send("jumpLand") messenger.send("jumpLand")
if impact < -5.0:
self.startJumpDelay(0.2)
# else, ignore the little potholes.
assert self.isAirborne == 0 assert self.isAirborne == 0
self.priorParent = Vec3.zero() self.priorParent = Vec3.zero()
else: else: