mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
changed a comment
This commit is contained in:
parent
05fafea499
commit
2a1a215fac
@ -79,7 +79,7 @@ class BattleWalker(GravityWalker.GravityWalker):
|
|||||||
assert(self.isAirborne == 0)
|
assert(self.isAirborne == 0)
|
||||||
self.priorParent = Vec3.zero()
|
self.priorParent = Vec3.zero()
|
||||||
if jump and self.mayJump:
|
if jump and self.mayJump:
|
||||||
# ...the jump button is down and we're close
|
# The jump button is down and we're close
|
||||||
# enough to the ground to jump.
|
# enough to the ground to jump.
|
||||||
self.lifter.addVelocity(self.avatarControlJumpForce)
|
self.lifter.addVelocity(self.avatarControlJumpForce)
|
||||||
messenger.send("jumpStart")
|
messenger.send("jumpStart")
|
||||||
|
@ -491,7 +491,7 @@ class GravityWalker(DirectObject.DirectObject):
|
|||||||
assert(self.isAirborne == 0)
|
assert(self.isAirborne == 0)
|
||||||
self.priorParent = Vec3.zero()
|
self.priorParent = Vec3.zero()
|
||||||
if jump and self.mayJump:
|
if jump and self.mayJump:
|
||||||
# ...the jump button is down and we're close
|
# The jump button is down and we're close
|
||||||
# enough to the ground to jump.
|
# enough to the ground to jump.
|
||||||
self.lifter.addVelocity(self.avatarControlJumpForce)
|
self.lifter.addVelocity(self.avatarControlJumpForce)
|
||||||
messenger.send("jumpStart")
|
messenger.send("jumpStart")
|
||||||
|
@ -177,7 +177,7 @@ class PhysicsWalker(DirectObject.DirectObject):
|
|||||||
height = 0.0
|
height = 0.0
|
||||||
#*#self.cRayTrav.traverse(render)
|
#*#self.cRayTrav.traverse(render)
|
||||||
if self.cRayQueue.getNumEntries() != 0:
|
if self.cRayQueue.getNumEntries() != 0:
|
||||||
# ...we have a floor.
|
# We have a floor.
|
||||||
# Choose the highest of the possibly several floors we're over:
|
# Choose the highest of the possibly several floors we're over:
|
||||||
self.cRayQueue.sortEntries()
|
self.cRayQueue.sortEntries()
|
||||||
floorPoint = self.cRayQueue.getEntry(0).getFromIntersectionPoint()
|
floorPoint = self.cRayQueue.getEntry(0).getFromIntersectionPoint()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user