Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/elements/box2d/__init__.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2012-10-24 00:40:54 (GMT)
committer Gary Martin <gary@garycmartin.com>2012-10-24 00:40:54 (GMT)
commitdb517f0b40c441158203d69aa34627058f2ab2e9 (patch)
tree3416eca5bca558b995d9c8feff24d76b18e3430f /elements/box2d/__init__.py
parente6cff9307917aa97019785c32fbf0e412ba0e7ea (diff)
Use recent versions of Box2D and elements and ARM platform compatibility.
The version of Box2D and elements as used by the current version of Physics has been migrated over into Bridge and the old versions removed. The Elements egg needed some minor patches for a function used in Bridge hence the change in name to Elements-0.13-py2.5-bridge.egg. The binary blob paths are appended to the system path rather than inserted as the first choice so that builds that included newer versions of Box2d, or versions build for different architectures, will still work (tested on ARM XO-1.75 and XO-4 platforms). Due to the change in Elements/Box2D api some additional code changes were necessary, particularly the calculations in Bridge.py for calculating the joint stress on the rivits.
Diffstat (limited to 'elements/box2d/__init__.py')
-rwxr-xr-xelements/box2d/__init__.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/elements/box2d/__init__.py b/elements/box2d/__init__.py
deleted file mode 100755
index 57a0cad..0000000
--- a/elements/box2d/__init__.py
+++ /dev/null
@@ -1,22 +0,0 @@
-from platform import architecture
-from platform import system as platformsystem
-
-s = platformsystem()
-arch, arch2 = architecture()
-
-print "Loading box2d for %s (%s)" % (s, arch)
-
-if s == 'Linux':
- if arch == "64bit":
- from box2d_linux64 import *
- else:
- try:
- from box2d_linux32 import *
- except:
- from box2d_linux32ppc import *
-
-elif s == 'Windows':
- from box2d_win import *
-
-elif s == 'Darwin':
- from box2d_macosx import *