mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Import box2d-contacts branch from love-experiments
Fix issues with Contact lifetime, based on the work of Matteo "teomat" Goggi
This commit is contained in:
@@ -59,6 +59,18 @@ public:
|
||||
|
||||
virtual ~Contact();
|
||||
|
||||
/**
|
||||
* Removes the b2Contact pointer from Memoizer and sets it
|
||||
* to null on the Contact.
|
||||
**/
|
||||
void invalidate();
|
||||
|
||||
/**
|
||||
* Returns if the Contact still points to a valid b2Contact.
|
||||
* @return True if the contact is still valid or false if it has been destroyed.
|
||||
**/
|
||||
bool isValid();
|
||||
|
||||
/**
|
||||
* Gets the position of each point of contact.
|
||||
* @return The position along the x-axis.
|
||||
|
||||
Reference in New Issue
Block a user