← Back to team overview

ragetrack-team team mailing list archive

[Branch ~ragetrack-team/ragetracks/trunk] Rev 10: renamed main to ode_test.py

 

------------------------------------------------------------
revno: 10
committer: Jannik <blazingsun@blazingsun-laptop>
branch nick: trunk
timestamp: Thu 2010-08-26 15:25:14 +0200
message:
  renamed main to ode_test.py
added:
  ode_test.py


--
lp:ragetracks
https://code.launchpad.net/~ragetrack-team/ragetracks/trunk

Your team RageTrack-Team is subscribed to branch lp:ragetracks.
To unsubscribe from this branch go to https://code.launchpad.net/~ragetrack-team/ragetracks/trunk/+edit-subscription
=== added file 'ode_test.py'
--- ode_test.py	1970-01-01 00:00:00 +0000
+++ ode_test.py	2010-08-26 13:25:14 +0000
@@ -0,0 +1,19 @@
+from direct.showbase.ShowBase import ShowBase
+from pandac.PandaModules import *
+ 
+
+class RageTracks(ShowBase):
+    def __init__(self):
+        ShowBase.__init__(self)
+        #Initialise the Ode world
+        world = OdeWorld()
+        world.setGravity(0, 0, -9.81)
+         
+
+    def physicsTask(task):
+      # Step the simulation and set the new positions
+      world.quickStep(globalClock.getDt())
+      return task.cont
+
+game = RageTracks() 
+game.run()
\ No newline at end of file