25 auto *MovementComponent =
CarlaVehicle->GetVehicleMovementComponent();
27 MovementComponent->SetSteeringInput(Control.
Steer);
28 MovementComponent->SetBrakeInput(Control.
Brake);
29 MovementComponent->SetHandbrakeInput(Control.
bHandBrake);
32 MovementComponent->SetUseAutoGears(!Control.
bReverse);
33 MovementComponent->SetTargetGear(Control.
bReverse ? -1 : 1,
true);
40 MovementComponent->SetTargetGear(Control.
Gear,
true);
43 Control.
Gear = MovementComponent->GetCurrentGear();