mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-15 00:06:05 -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):
|
def getSpeeds(self):
|
||||||
return self.currentControls.getSpeeds()
|
return self.currentControls.getSpeeds()
|
||||||
|
|
||||||
|
def getIsAirborne(self):
|
||||||
|
return self.currentControls.getIsAirborne()
|
||||||
|
|
||||||
def setTag(self, key, value):
|
def setTag(self, key, value):
|
||||||
assert self.notify.debugCall(id(self))
|
assert self.notify.debugCall(id(self))
|
||||||
for controls in self.controls.values():
|
for controls in self.controls.values():
|
||||||
|
@ -167,6 +167,9 @@ class GravityWalker(DirectObject.DirectObject):
|
|||||||
#assert self.debugPrint("getSpeeds()")
|
#assert self.debugPrint("getSpeeds()")
|
||||||
return (self.speed, self.rotationSpeed, self.slideSpeed)
|
return (self.speed, self.rotationSpeed, self.slideSpeed)
|
||||||
|
|
||||||
|
def getIsAirborne(self):
|
||||||
|
return self.isAirborne
|
||||||
|
|
||||||
def setAvatar(self, avatar):
|
def setAvatar(self, avatar):
|
||||||
self.avatar = avatar
|
self.avatar = avatar
|
||||||
if avatar is not None:
|
if avatar is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user