mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
*** empty log message ***
This commit is contained in:
parent
e344a6dc1e
commit
c443c81857
@ -191,10 +191,19 @@ class ShowBase:
|
|||||||
self.tkroot = None
|
self.tkroot = None
|
||||||
|
|
||||||
def igloop(self, state):
|
def igloop(self, state):
|
||||||
|
# First, traverse the data graph. This reads all the control
|
||||||
|
# inputs (from the mouse and keyboard, for instance) and also
|
||||||
|
# directly acts upon them (for instance, to move the avatar).
|
||||||
directTraverseDataGraph(self.dataRoot.node())
|
directTraverseDataGraph(self.dataRoot.node())
|
||||||
|
|
||||||
|
# Then, run the collision traversal if we have a
|
||||||
|
# CollisionTraverser set.
|
||||||
if self.cTrav:
|
if self.cTrav:
|
||||||
self.cTrav.traverse(self.render)
|
self.cTrav.traverse(self.render)
|
||||||
|
|
||||||
|
# Finally, render the frame.
|
||||||
self.win.update()
|
self.win.update()
|
||||||
|
|
||||||
return Task.cont
|
return Task.cont
|
||||||
|
|
||||||
def restart(self):
|
def restart(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user