Author: DerekRhodes
Date: 2008-03-05 11:38:32 -0500 (Wed, 05 Mar 2008)
New Revision: 1044

Modified:
   trunk/pysoy/src/joints/Hinge.pxi
   trunk/pysoy/src/joints/Hinge2.pxi
Log:
hinge fixed for the children changeover

Modified: trunk/pysoy/src/joints/Hinge.pxi
===================================================================
--- trunk/pysoy/src/joints/Hinge.pxi    2008-03-05 15:55:37 UTC (rev 1043)
+++ trunk/pysoy/src/joints/Hinge.pxi    2008-03-05 16:38:32 UTC (rev 1044)
@@ -23,15 +23,13 @@
     a hinge joint
   '''
   def __init__(self, parent, body1, body2, position, axis) :
-    #self._scene._joints.lock()
-    self._scene._joints._stepLock()
+    self._scene._stepLock()
     self._jointID = ode.dJointCreateHinge(self._scene._worldID, NULL)
     ode.dJointAttach(self._jointID, self._body1._bodyID, self._body2._bodyID)
     self.position = position
     self.axis = axis
     self._scene._joints.append(<void *> self)
-    #self._scene._joints.unlock()
-    self._scene._joints._stepUnlock()
+    self._scene._stepUnlock()
     
   property position :
     '''Hinge.position
@@ -100,5 +98,3 @@
 
   def addTorque(self, torque) :
     ode.dJointAddHingeTorque(self._jointID, torque)
-
-# !DIRTY: 26-31 # ok have fixed this, maybe.

Modified: trunk/pysoy/src/joints/Hinge2.pxi
===================================================================
--- trunk/pysoy/src/joints/Hinge2.pxi   2008-03-05 15:55:37 UTC (rev 1043)
+++ trunk/pysoy/src/joints/Hinge2.pxi   2008-03-05 16:38:32 UTC (rev 1044)
@@ -23,14 +23,14 @@
     a double hinge joint
   '''
   def __init__(self, parent, body1, body2, position, axis1, axis2) :
-    self._scene._joints.lock()
+    self._scene._stepLock()
     self._jointID = ode.dJointCreateHinge2(self._scene._worldID, NULL)
     ode.dJointAttach(self._jointID, self._body1._bodyID, self._body2._bodyID)
     self.position = position
     self.axis1 = axis1
     self.axis2 = axis2
     self._scene._joints.append(<void *> self)
-    self._scene._joints.unlock()
+    self._scene._stepUnlock()
 
   property position :
     '''Hinge2.position
@@ -112,4 +112,3 @@
   def addTorque(self, torque1, torque2) :
     ode.dJointAddHinge2Torques(self._jointID, torque1, torque2)
 
-# !DIRTY: 26-31

_______________________________________________
PySoy-SVN mailing list
PySoy-SVN@pysoy.org
http://www.pysoy.org/mailman/listinfo/pysoy-svn

Reply via email to