From db517f0b40c441158203d69aa34627058f2ab2e9 Mon Sep 17 00:00:00 2001 From: Gary Martin Date: Wed, 24 Oct 2012 00:40:54 +0000 Subject: 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. --- (limited to 'activity.py') diff --git a/activity.py b/activity.py index 0c6351d..27aa14c 100644 --- a/activity.py +++ b/activity.py @@ -1,6 +1,7 @@ import sys -sys.path.insert(0, ".") +sys.path.append("lib/Elements-0.13-py2.5-bridge.egg") +sys.path.append("lib/Box2D-2.0.2b1-py2.5-linux-i686.egg") import gtk import pygame -- cgit v0.9.1