setPositionUpdateFunc method

void setPositionUpdateFunc(
  1. void positionFunc(
    1. Body body,
    2. double dt
    )
)

Set the callback used to update a body's position. NOTE: It's not generally recommended to override this unless you call the default position update function.

Implementation

void setPositionUpdateFunc(void Function(Body body, double dt) positionFunc) => _body.setPositionUpdateFunc(positionFunc);