mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +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:
@@ -393,6 +393,13 @@ public:
|
||||
**/
|
||||
int getFixtureList(lua_State *L) const;
|
||||
|
||||
/**
|
||||
* Get an array of all active Contacts attached to this Body.
|
||||
* This list changes during World:update and you may miss some collisions
|
||||
* if you don't use the collision callbacks.
|
||||
**/
|
||||
int getContactList(lua_State *L) const;
|
||||
|
||||
/**
|
||||
* Destroy this body.
|
||||
**/
|
||||
|
||||
Reference in New Issue
Block a user