removeContactMaterial method

void removeContactMaterial(
  1. ContactMaterial cmat
)

Removes a contact material from the World.

Implementation

void removeContactMaterial(ContactMaterial cmat) {
  final idx = contactmaterials.indexOf(cmat);
  if (idx == -1) {
    return;
  }

  contactmaterials.removeAt(idx);
  contactMaterialTable.delete(cmat.materials[0].id, cmat.materials[1].id);
}