updateAnchorPoints method

void updateAnchorPoints()

Update all the anchor points.a

Implementation

void updateAnchorPoints() {
  relativeAnchorPoint1..setFrom( localAnchorPoint1 )..applyMatrix3Transpose(body1!.rotation );
  relativeAnchorPoint2..setFrom(localAnchorPoint2 )..applyMatrix3Transpose(body2!.rotation );

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