Exemple #1
0
	def initManagers(self):
		from pandark.managers.physicsmanager import PhysicsManager
		self.physicsMgr = PhysicsManager()

		from pandark.managers.lightsmanager import LightsManager
		self.lightsMgr = LightsManager()

		from pandark.managers.camerasmanager import CamerasManager
		self.camerasMgr = CamerasManager()

		from pandark.managers.animationsmanager import AnimationsManager
		self.animsMgr = AnimationsManager()
Exemple #2
0
	def __init__(self,environment,nodes,lights,cameras,entities,animations,staticGeoms,yamlList):

		self.sceneNode = render.attachNewNode('sceneNode')

		self.environment = environment
		self.nodes       = nodes
		self.lights      = lights
		self.cameras     = cameras         
		self.entities    = entities       
		self.animations  = animations
		self.staticGeoms = staticGeoms
		self.yamlList    = yamlList

		self.physicsMgr = PhysicsManager()
		self.lightsMgr  = LightsManager()
		self.camerasMgr = CamerasManager()
		self.animsMgr   = AnimationsManager()

		self.reset()