I'm testing the 6.0 beta and it's working just fine... the only problem I'm facing right now is random crashes when calling cpSpacePointQueryFirst (for a touch joint). I've tracked the problem and it happens the second time I create a space (for instance, the level 2 of a game), and it's because of this line:
Code: Select all
static inline void
cpSpatialIndexPointQuery(cpSpatialIndex *index, cpVect point, cpSpatialIndexQueryFunc func, void *data)
{
index->klass->pointQuery(index, point, func, data);
}
basically, index is corrupted: some times klass->pointQuery is NULL, others, just index is NULL.
I'm using svn revision 742. Any idea why the pointQuery pointer function might be null?
thanks!