Poodletooth-iLand/toontown/minigame/TwoDWalk.py

14 lines
468 B
Python
Raw Normal View History

2015-03-03 16:10:12 -06:00
from OrthoWalk import *
class TwoDWalk(OrthoWalk):
notify = DirectNotifyGlobal.directNotify.newCategory('TwoDWalk')
BROADCAST_POS_TASK = 'TwoDWalkBroadcastPos'
def doBroadcast(self, task):
dt = globalClock.getDt()
self.timeSinceLastPosBroadcast += dt
if self.timeSinceLastPosBroadcast >= self.broadcastPeriod:
self.timeSinceLastPosBroadcast = 0
self.lt.cnode.broadcastPosHprFull()
return Task.cont