addContactMaterial method

void addContactMaterial(
  1. ContactMaterial cmat
)

Adds a contact material to the World

Implementation

void addContactMaterial(ContactMaterial cmat) {
  // Add contact material
  contactmaterials.add(cmat);
  // Add current contact material to the material table
  contactMaterialTable.set(cmat.materials[0].id, cmat.materials[1].id, cmat);
}