Add foldable pathfinding panel and richer ETA tooltips
This commit is contained in:
1 parent
401dad3170
commit
e7940ae0cb
6 files changed
+1063
-3
No files matched your search
@@ -57,6 +57,23 @@ export const maxZoneLength = 700;
|
||||
/** How many pixels around the view is still considered "visible", beyond this and items are culled. */
|
||||
export const viewCullMargin = 60;
|
||||
|
||||
export const routing = {
|
||||
maxSpeed: 120,
|
||||
maxGrade: 6,
|
||||
gradePenalty: 0.04,
|
||||
minGradeFactor: 0.35,
|
||||
snapSearchSteps: 48,
|
||||
polylineStepMeters: 25,
|
||||
markerRadius: 10,
|
||||
maxSnapDistance: 1200,
|
||||
assumedUnpostedSpeed: 120,
|
||||
unpostedSpeedLimit: 90,
|
||||
tightCurveRadius: 170,
|
||||
tightCurveSpeed: 40,
|
||||
accel: 0.35,
|
||||
decel: 0.5,
|
||||
};
|
||||
|
||||
export const tooltipHitzone = {
|
||||
default: {radius:12},
|
||||
junction: {width:24, height:35},
|
||||
@@ -92,4 +109,4 @@ export const spriteBounds = {
|
||||
service_diesel: new SpriteBounds(40,120,20,20),
|
||||
service_charger: new SpriteBounds(60,120,20,20),
|
||||
player: new SpriteBounds(20,0,20,20),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user