setAngularOffset method

void setAngularOffset(
  1. double angularOffset
)

Set the target angular offset, in radians.

Implementation

void setAngularOffset(double angularOffset) {
  if (angularOffset != _angularOffset) {
    bodyA.setAwake(true);
    bodyB.setAwake(true);
    _angularOffset = angularOffset;
  }
}