destructor method

void destructor ()
override

Override to handle destruction of joint

Implementation

void destructor() {
  for (int i = 0; i < _distanceJoints.length; ++i) {
    _world.destroyJoint(_distanceJoints[i]);
  }
}