changeset 83:07a2ae603bdd

Correct physics comments - units are now pixel based, not metres
author Neil Muller <drnlmuller@gmail.com>
date Mon, 04 Apr 2011 13:27:09 +0200
parents 49b25117ebbb
children 6de531d648c3
files skaapsteker/physics.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/skaapsteker/physics.py	Mon Apr 04 12:10:05 2011 +0200
+++ b/skaapsteker/physics.py	Mon Apr 04 13:27:09 2011 +0200
@@ -14,7 +14,7 @@
     mobile = True # whether the velocity may be non-zero
     gravitates = True # whether gravity applies to the sprite
 
-    terminal_velocity = (300.0, 300.0) # maximum horizontal and vertial speeds
+    terminal_velocity = (300.0, 300.0) # maximum horizontal and vertial speeds (pixels / s)
     bounce_factor = (0.98, 1.05) # bounce factor
 
     def __init__(self, *args, **kwargs):
@@ -84,7 +84,7 @@
 
 class World(object):
 
-    GRAVITY = 9.8 * 20.0 # m/s^2
+    GRAVITY = 9.8 * 20.0 # pixels / s^2
 
     def __init__(self):
         self._all = pygame.sprite.LayeredUpdates()