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:
Boolsheet
2012-07-24 23:59:42 +02:00
parent 82d6edb32c
commit cde5aa3307
4 changed files with 56 additions and 16 deletions
+12
View File
@@ -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.