mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Added Contact:getFixtures and Body:getContactList (see issue #905).
The list of Contacts associated with bodies changes during World:update (potentially multiple times), so you might miss collisions if you don't use the World callbacks at all.
This commit is contained in:
@@ -148,6 +148,11 @@ public:
|
||||
|
||||
void getChildren(int &childA, int &childB);
|
||||
|
||||
/**
|
||||
* Gets the Fixtures associated with this Contact.
|
||||
**/
|
||||
void getFixtures(Fixture *&fixtureA, Fixture *&fixtureB);
|
||||
|
||||
private:
|
||||
|
||||
// The Box2D contact.
|
||||
|
||||
Reference in New Issue
Block a user