Skip to main content

apply_brakes

Function apply_brakes 

Source
pub fn apply_brakes(q_trains: Query<'_, '_, (&mut Velocity, &Controls)>)
Expand description

System to apply brakes to trains. Little bit of a hack, since brakes would in reality slow down the wheels which would in turn deliver less force/acceleration to the train.