setTorque method

void setTorque(
  1. double torque
)

Set the torque applied to the body for the next time step.

Implementation

void setTorque(double torque) => _body.setTorque(torque);