Commits

Anonymous committed 38f97de

change some little bugs

Comments (0)

Files changed (3)

src/pgBodyObject.c

 	return PyFloat_FromDouble (body->fAngleVelocity);
 }
 
-/**
-* Sets the rotation of the passed body.
-*/
+
 static int _Body_setAngularVel(PyBodyObject* body,PyObject* value,void* closure)
 {
 	if (PyNumber_Check (value))

src/pgCollision.c

 void Collision_ApplyContact(PyObject* contactObject, double step)
 {
 #define MAX_C_DEP 0.01
-#define BIAS_FACTOR 0.25
+#define BIAS_FACTOR 0.2
 
     PyVector2 neg_dV, refV, incidV;
     PyVector2 refR, incidR;
     p->real += bm.real/contact->weight;
     p->imag += bm.imag/contact->weight;
 
+
+#undef MAX_C_DEP
+#undef BIAS_FACTOR
 }
 
 

src/pgJointObject.c

 	}
 	else
 	{
-		assert(false);
+		assert(0);
 	}
 	return Py_BuildValue ("(ff)", global_p.real, global_p.imag);
 }