pygame / src / pgCollision.c

Diff from to


 static int _LiangBarskey_Internal(double p, double q, double* u1, double* u2);
 static void _UpdateV(PyJointObject* joint, double step);
-static void _UpdateP(PyJointObject* joint, double step);
 static void _ContactDestroy(PyJointObject* contact);
 static PyObject* _ContactNewInternal(PyTypeObject *type, PyObject *args,
     PyObject *kwds);
- * This function is isolated and only hold the place
- */
-static void _UpdateP(PyJointObject* joint, double step)
 int Collision_LiangBarskey(AABBBox* box, PyVector2* p1, PyVector2* p2, 
     PyVector2* ans_p1, PyVector2* ans_p2)
     contact = (PyContact*)_ContactNewInternal(&PyContact_Type, NULL, NULL);
     contact->joint.body1 = (PyObject*)refBody;
     contact->joint.body2 = (PyObject*)incidBody;
-    contact->joint.SolveConstraintPosition = _UpdateP;
-    contact->joint.SolveConstraintVelocity = _UpdateV;
+    contact->joint.SolveConstraints = _UpdateV;
     contact->joint.Destroy = _ContactDestroy;
     contact->ppAccMoment = NULL;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.