setAngularOffset method

void setAngularOffset(
  1. double angularOffset
)

Set the target angular offset, in radians.

@param angularOffset

Implementation

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