updateAnchorPoints method

void updateAnchorPoints()

Update all the anchor points.a

Implementation

void updateAnchorPoints() {
  relativeAnchorPoint1.copy( localAnchorPoint1 ).applyMatrix3(body1!.rotation, true );
  relativeAnchorPoint2.copy(localAnchorPoint2 ).applyMatrix3(body2!.rotation, true );

  anchorPoint1.add( relativeAnchorPoint1, body1!.position );
  anchorPoint2.add( relativeAnchorPoint2, body2!.position );
}