setEnabled method

void setEnabled (bool flag)

Enable/disable this contact. This can be used inside the pre-solve contact listener. The contact is only disabled for the current time step (or sub-step in continuous collisions).

@param flag

Implementation

void setEnabled(bool flag) {
  if (flag) {
    _flags |= ENABLED_FLAG;
  } else {
    _flags &= ~ENABLED_FLAG;
  }
}