mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 09:24:26 +03:00
hack around accel_to_stop_in_dist problem, for now
This commit is contained in:
parent
e2d2660b38
commit
f3c76c4416
@ -30,6 +30,7 @@ enum Action {
|
||||
WaitForBus(BusStopID, RouteID),
|
||||
// (from, to)
|
||||
RideBus(BusStopID, BusStopID),
|
||||
// TODO parking, unparking bike
|
||||
|
||||
// Only buses
|
||||
DeboardPassengers(BusStopID),
|
||||
|
@ -95,8 +95,9 @@ impl Vehicle {
|
||||
vehicle_type: VehicleType::Bike,
|
||||
// http://eprints.uwe.ac.uk/20767/ says mean 0.231
|
||||
max_accel: rng.gen_range(0.2, 0.3) * si::MPS2,
|
||||
// Just assume it's the same as acceleration for now
|
||||
max_deaccel: rng.gen_range(-0.3, -0.2) * si::MPS2,
|
||||
// Much easier deaccel. Partly to avoid accel_to_stop_in_dist bugs with bikes running
|
||||
// stop signs.
|
||||
max_deaccel: rng.gen_range(-1.3, -1.2) * si::MPS2,
|
||||
length: rng.gen_range(MIN_BIKE_LENGTH.value_unsafe, MAX_BIKE_LENGTH.value_unsafe)
|
||||
* si::M,
|
||||
// 7 to 10 mph is 4.47 m/s
|
||||
|
Loading…
Reference in New Issue
Block a user