mirror of
https://github.com/love2d/love.git
synced 2026-08-17 02:58:31 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user