setBrake method

void setBrake(
  1. double brake,
  2. int wheelIndex
)

Set the braking force of a wheel

Implementation

void setBrake(double brake,int wheelIndex){
  wheelInfos[wheelIndex].brake = brake;
}