Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Trash: Cookbook Integrate with any loop(panda3d example)

Brian Granger edited this page · 1 revision
Clone this wiki locally
from direct.showbase.ShowBase import ShowBase
from IPython.lib import inputhook

class MyApp(ShowBase):
    def (self):
        self.m = loader.loadModel("frowney")

    def stepMe(self):
        taskMgr.step()              # manual step trough Panda3D loop
        return 0  

if  == "":  
    app = MyApp()  

open terminal and cd to directory where file is located, then enter following commands : (you may want to zoom out panda window a bit so you can actually see frowney)

#  ipython
#  run
#  app.m.setPos(1,1,1)

Question: How can i improve speed of execution, from what i can see, panda is running at steady rate of 100 ms per frame. Is that tick rate of readline? Can i somehow increase that speed?

Something went wrong with that request. Please try again.