mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
Added functions to enable/disable toon jumping
This commit is contained in:
parent
09890fb177
commit
3110e8c5ef
@ -23,7 +23,6 @@ import math
|
|||||||
|
|
||||||
#import LineStream
|
#import LineStream
|
||||||
|
|
||||||
|
|
||||||
class PhysicsWalker(DirectObject.DirectObject):
|
class PhysicsWalker(DirectObject.DirectObject):
|
||||||
|
|
||||||
notify = DirectNotifyGlobal.directNotify.newCategory("PhysicsWalker")
|
notify = DirectNotifyGlobal.directNotify.newCategory("PhysicsWalker")
|
||||||
@ -710,6 +709,19 @@ class PhysicsWalker(DirectObject.DirectObject):
|
|||||||
if __debug__:
|
if __debug__:
|
||||||
self.ignore("control-f3") #*#
|
self.ignore("control-f3") #*#
|
||||||
self.ignore("f3")
|
self.ignore("f3")
|
||||||
|
|
||||||
|
def enableAvatarJump(self):
|
||||||
|
"""
|
||||||
|
Force the ctrl key to return 0's
|
||||||
|
"""
|
||||||
|
inputState.unforce("jump")
|
||||||
|
|
||||||
|
def disableAvatarJump(self):
|
||||||
|
"""
|
||||||
|
Stop forcing the ctrl key to return 0's
|
||||||
|
"""
|
||||||
|
inputState.force("jump", 0)
|
||||||
|
|
||||||
|
|
||||||
if __debug__:
|
if __debug__:
|
||||||
def debugPrint(self, message):
|
def debugPrint(self, message):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user