2
votes

Ive been trying to learn the Physics Box2D Extension for AndEngine and I have been reading http://www.box2d.org/manual.html#_Toc258082975

Under "9.3 Accessing Contacts" it says

You can also iterate over all the contacts on a body

My understanding is that I should be able to do

myBody().GetContactList()

But I cant seem to find it. Am I missing something here? should I be able to do this?

Thanks in advance

EDIT:

ok, I've looked in Body.java for the Box2DExtension and found

// ArrayList<ContactEdge> getContactList()
// {
// return contacts;
// } 

commented out, does anybody know why. I will still have a look but if anybody could find the answer quicker than me it would be greatly appreciated

1

1 Answers

0
votes

Thought id share what I found: After more googling I found this where it is explained that the Box2d extension is pulled from libgdx and the file that is supposed to have .GetContactList() is Body.java line 772 which has been commented out for a while. I don't know why it hasn't been implemented but at least I know why I'm not able to call it.