Home    Features    Download    Screenshots    Manual    Reference    Forums    License    Contact   
 
  Panda3D Manual: The Global Clock
  <<prev top next>>     

The global clock is an instance of the ClockObject class. It gets imported into the global namespace when you load the DirectStart/Showbase modules.

To get the time (in seconds) since the last frame was drawn:

globalClock.getDt()

Another useful function is the frame time (in seconds, since the program started):

globalClock.getFrameTime()

Incomplete Section

Note: this section is incomplete. It will be updated soon.

  <<prev top next>>     
.
screenshot
Disney's Pirates of the Caribbean Online
screenshot
Code3D is a tool for creating virtual training scenarios.
screenshot
Disney Pinball: real physics and cool settings