love.physics: move internal box2d->love object map to World instances, and clean up some physics object code. Resolves issue #1465.

This commit is contained in:
Alex Szpakowski
2019-01-04 21:36:05 -04:00
parent 0752f27bdf
commit 3ad16a70da
20 changed files with 103 additions and 215 deletions
+3 -1
View File
@@ -57,7 +57,7 @@ public:
* data pointed to.
* @param contact Pointer to the Box2D contact.
**/
Contact(b2Contact *contact);
Contact(World *world, b2Contact *contact);
virtual ~Contact();
@@ -159,6 +159,8 @@ private:
// The Box2D contact.
b2Contact *contact;
World *world;
};
} // box2d