setJointMotor method
Drives a hinge or slider joint.
Implementation
@override
void setJointMotor(int joint, MotorState3D state, double target) {
final j = joints[joint];
if (j == null) return;
j
..motorState = state
..motorTarget = target;
}