setAutoClearForces method

void setAutoClearForces(
  1. bool shouldAutoClear
)

Set flag to control automatic clearing of forces after each time step.

Implementation

void setAutoClearForces(bool shouldAutoClear) {
  if (shouldAutoClear) {
    flags |= clearForcesBit;
  } else {
    flags &= ~clearForcesBit;
  }
}