mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
added ability to query airborne state. Be careful this only works if the walker supports the airborne state
This commit is contained in:
parent
dbb25d478c
commit
c1f040a7d1
@ -178,6 +178,9 @@ class ControlManager:
|
||||
def getSpeeds(self):
|
||||
return self.currentControls.getSpeeds()
|
||||
|
||||
def getIsAirborne(self):
|
||||
return self.currentControls.getIsAirborne()
|
||||
|
||||
def setTag(self, key, value):
|
||||
assert self.notify.debugCall(id(self))
|
||||
for controls in self.controls.values():
|
||||
|
@ -167,6 +167,9 @@ class GravityWalker(DirectObject.DirectObject):
|
||||
#assert self.debugPrint("getSpeeds()")
|
||||
return (self.speed, self.rotationSpeed, self.slideSpeed)
|
||||
|
||||
def getIsAirborne(self):
|
||||
return self.isAirborne
|
||||
|
||||
def setAvatar(self, avatar):
|
||||
self.avatar = avatar
|
||||
if avatar is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user