synchronizeFixtures method

void synchronizeFixtures ()

Implementation

void synchronizeFixtures() {
  final Transform xf1 = _pxf;
  // xf1.position = _sweep.c0 - Mul(xf1.R, _sweep.localCenter);

  // xf1.q.set(_sweep.a0);
  // Rot.mulToOutUnsafe(xf1.q, _sweep.localCenter, xf1.p);
  // xf1.p.mulLocal(-1).addLocal(_sweep.c0);
  // inlined:
  xf1.q.s = Math.sin(_sweep.a0);
  xf1.q.c = Math.cos(_sweep.a0);
  xf1.p.x = _sweep.c0.x -
      xf1.q.c * _sweep.localCenter.x +
      xf1.q.s * _sweep.localCenter.y;
  xf1.p.y = _sweep.c0.y -
      xf1.q.s * _sweep.localCenter.x -
      xf1.q.c * _sweep.localCenter.y;
  // end inline

  for (Fixture f = _fixtureList; f != null; f = f._next) {
    f.synchronize(world._contactManager.broadPhase, xf1, _transform);
  }
}