init method

void init (Fixture fA, int indexA, Fixture fB, int indexB)

initialization for pooling

Implementation

void init(Fixture fA, int indexA, Fixture fB, int indexB) {
  _flags = ENABLED_FLAG;

  _fixtureA = fA;
  _fixtureB = fB;

  _indexA = indexA;
  _indexB = indexB;

  _manifold.pointCount = 0;

  _prev = null;
  _next = null;

  _nodeA.contact = null;
  _nodeA.prev = null;
  _nodeA.next = null;
  _nodeA.other = null;

  _nodeB.contact = null;
  _nodeB.prev = null;
  _nodeB.next = null;
  _nodeB.other = null;

  _toiCount = 0;
  _friction = Contact.mixFriction(fA._friction, fB._friction);
  _restitution = Contact.mixRestitution(fA._restitution, fB._restitution);

  _tangentSpeed = 0.0;
}