I'am writing game using libgdx and box2d. When an object touches another, phantom contact points often occur. This is how i drawing contact points:
private void renderContactPoints() {
for (Contact contact : world.getContactList())
for (Vector2 point : contact.getWorldManifold().getPoints())
renderer.getBatch().draw(tex, point.x * PPM, point.y * PPM, 20, 20);
}
Screenshot of problem
