mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 04:02:40 -06:00
Bitches
This commit is contained in:
parent
6868fa1267
commit
e2f45d0a0a
1 changed files with 4 additions and 4 deletions
|
@ -55,7 +55,7 @@ class DistributedSuit(DistributedSuitBase.DistributedSuitBase, DelayDeletable):
|
|||
self.pathState = 0
|
||||
self.path = None
|
||||
self.localPathState = 0
|
||||
self.currentLeg = 0
|
||||
self.currentLeg = -1
|
||||
self.pathStartTime = 0.0
|
||||
self.legList = None
|
||||
self.initState = None
|
||||
|
@ -219,7 +219,7 @@ class DistributedSuit(DistributedSuitBase.DistributedSuitBase, DelayDeletable):
|
|||
self.maxPathLen = maxPathLen
|
||||
self.path = None
|
||||
self.pathLength = 0
|
||||
self.currentLeg = 0
|
||||
self.currentLeg = -1
|
||||
self.legList = None
|
||||
if self.maxPathLen == 0 or not self.verifySuitPlanner() or start not in self.sp.pointIndexes or end not in self.sp.pointIndexes:
|
||||
return
|
||||
|
@ -327,7 +327,7 @@ class DistributedSuit(DistributedSuitBase.DistributedSuitBase, DelayDeletable):
|
|||
return Task.done
|
||||
now = globalClock.getFrameTime()
|
||||
elapsed = now - self.pathStartTime
|
||||
nextLeg = self.legList.getLegIndexAtTime(elapsed, self.currentLeg)
|
||||
nextLeg = self.legList.getLegIndexAtTime(elapsed, 0)
|
||||
numLegs = self.legList.getNumLegs()
|
||||
if self.currentLeg != nextLeg:
|
||||
self.currentLeg = nextLeg
|
||||
|
@ -348,7 +348,7 @@ class DistributedSuit(DistributedSuitBase.DistributedSuitBase, DelayDeletable):
|
|||
def stopPathNow(self):
|
||||
name = self.taskName('move')
|
||||
taskMgr.remove(name)
|
||||
self.currentLeg = 0
|
||||
self.currentLeg = -1
|
||||
|
||||
def calculateHeading(self, a, b):
|
||||
xdelta = b[0] - a[0]
|
||||
|
|
Loading…
Reference in a new issue