mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
GoonPathData.Paths now a dict
This commit is contained in:
parent
0a184b977f
commit
1d69646aa6
@ -7,14 +7,14 @@ import GoonPathData
|
||||
class PathEntity(BasicEntities.NodePathEntity):
|
||||
def __init__(self, level, entId):
|
||||
BasicEntities.NodePathEntity.__init__(self, level, entId)
|
||||
self.path = GoonPathData.Paths[self.pathIndex]
|
||||
self.path = GoonPathData.Paths[self.level.factorySpecNum][self.pathIndex]
|
||||
|
||||
def destroy(self):
|
||||
BasicEntities.NodePathEntity.destroy(self)
|
||||
|
||||
def setPathIndex(self, pathIndex):
|
||||
self.pathIndex = pathIndex
|
||||
self.path = GoonPathData.Paths[self.pathIndex]
|
||||
self.path = GoonPathData.Paths[self.level.factorySpecNum][self.pathIndex]
|
||||
|
||||
def makePathTrack(self, node, velocity, name, turnTime=1, lookAroundNode=None):
|
||||
track = Sequence(name = name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user