mirror of
https://github.com/IS1DI/x0gp.git
synced 2026-07-17 04:57:55 +00:00
feat: add track seeding migrations, catalog definitions, and test infrastructure for race leaderboards
This commit is contained in:
@@ -17,13 +17,23 @@ import "math"
|
||||
// (1/24 scale), power figures are real (full-scale 1.6L V6 hybrid
|
||||
// turbo, ~1000 hp combined MGU-K + ICE).
|
||||
func DefaultTracks() []Track {
|
||||
return []Track{
|
||||
tracks := []Track{
|
||||
Monaco(),
|
||||
BarcelonaCatalunya(),
|
||||
AustriaRedBullRing(),
|
||||
GreatBritainSilverstone(),
|
||||
BelgiumSpa(),
|
||||
}
|
||||
for i := range tracks {
|
||||
for j := range tracks[i].Centerline {
|
||||
tracks[i].Centerline[j].Y = -tracks[i].Centerline[j].Y
|
||||
tracks[i].Centerline[j].HeadingRad = -tracks[i].Centerline[j].HeadingRad
|
||||
}
|
||||
tracks[i].Bounds = ComputeBounds(tracks[i].Centerline)
|
||||
tracks[i].LengthM = tracks[i].Bounds.LengthM
|
||||
tracks[i].WidthM = tracks[i].Bounds.WidthM
|
||||
}
|
||||
return tracks
|
||||
}
|
||||
|
||||
func DefaultCars() []Car {
|
||||
|
||||
Reference in New Issue
Block a user