Hy i finally replaced old jBox2D 2.0.1 with 2.1.2.
and now i have problem with ContactListener...
_world.setContactListener(new ContactListener() {
public void add(ContactPoint point){}
public void persist(ContactPoint point) {}
public void remove(ContactPoint point) {}
public void result(ContactResult point) {
Entity et1 = ((Entity)(point.shape1.getUserData()));
Entity et2 = ((Entity)(point.shape2.getUserData()));
et1.touch(et2, point.position, point.normalImpulse, point.normal);
et2.touch(et1, point.position, point.normalImpulse, point.normal);
}
});
Anyone have idea how to port this part of code?
and now i have problem with ContactListener...
Code:
_world.setContactListener(new ContactListener() {
public void add(ContactPoint point){}
public void persist(ContactPoint point) {}
public void remove(ContactPoint point) {}
public void result(ContactResult point) {
Entity et1 = ((Entity)(point.shape1.getUserData()));
Entity et2 = ((Entity)(point.shape2.getUserData()));
et1.touch(et2, point.position, point.normalImpulse, point.normal);
et2.touch(et1, point.position, point.normalImpulse, point.normal);
}
});
Anyone have idea how to port this part of code?
