Author: ArcRiley Date: 2008-11-24 16:38:39 -0500 (Mon, 24 Nov 2008) New Revision: 1376
Modified: trunk/pysoy/include/math.pxd trunk/pysoy/include/ode.pxd trunk/pysoy/src/scenes/Scene.pym Log: Quick fix: switched out obsolete ode.dEpsilon for FLT_EPSILON for ODE 0.10+ Modified: trunk/pysoy/include/math.pxd =================================================================== --- trunk/pysoy/include/math.pxd 2008-11-11 05:45:21 UTC (rev 1375) +++ trunk/pysoy/include/math.pxd 2008-11-24 21:38:39 UTC (rev 1376) @@ -18,6 +18,8 @@ # $Id$ cdef extern from "math.h" nogil : + ctypedef enum : + FLT_EPSILON long int lround ( double ) long int lroundf ( float ) double fabs ( double ) Modified: trunk/pysoy/include/ode.pxd =================================================================== --- trunk/pysoy/include/ode.pxd 2008-11-11 05:45:21 UTC (rev 1375) +++ trunk/pysoy/include/ode.pxd 2008-11-24 21:38:39 UTC (rev 1376) @@ -20,7 +20,6 @@ cdef extern from "ode/ode.h" nogil : ctypedef enum : #common - dEpsilon dInfinity #joint types Modified: trunk/pysoy/src/scenes/Scene.pym =================================================================== --- trunk/pysoy/src/scenes/Scene.pym 2008-11-11 05:45:21 UTC (rev 1375) +++ trunk/pysoy/src/scenes/Scene.pym 2008-11-24 21:38:39 UTC (rev 1376) @@ -214,8 +214,8 @@ cdef int _step cdef double _lapsTime _lapsTime = _time() - self._prevTime - if _lapsTime < ode.dEpsilon : - _lapsTime = ode.dEpsilon + if _lapsTime < math.FLT_EPSILON : + _lapsTime = math.FLT_EPSILON _step = math.lround(_lapsTime / self._stepSize) if _step > 12 : _step = 12 _______________________________________________ PySoy-SVN mailing list PySoy-SVN@pysoy.org http://www.pysoy.org/mailman/listinfo/pysoy-svn