Obstacles
Last updated
Last updated
Some tracks are not perfect and feature damaged lanes, creating various obstacles that make parts of the track difficult to run. The types of obstacles include , , and . Each obstacle type has its own requirements, meaning alpacas with the same overall stat may perform differently on these Obstacles. It's crucial to race often to learn which Obstacles suit your alpaca best.
Obstacles are generated using specific parameters to ensure variability and challenge in each race. Here are the key parameters:
MEAN_OBSTACLE_DISTANCE: 500
OBSTACLE_DISTANCE_VARIANCE: 40
MIN_OBSTACLE_LENGTH: 25
MAX_OBSTACLE_LENGTH: 30
Obstacles are generated with the following steps:
Determine Number of Obstacles: The number of obstacles is based on the track length and the MEAN_OBSTACLE_DISTANCE
.
Calculate Mean Obstacle Distance: This is adjusted by the number of available obstacles.
Shuffle Obstacle Types: Obstacle types are shuffled to ensure randomness.
Place Obstacles: Obstacles are placed at random positions within a variance range (OBSTACLE_DISTANCE_VARIANCE
), ensuring they do not overlap and fit within the track length.
Speed Restriction Near Obstacles
Alpacas must slow down near obstacles and turns, indicated by the Speed Fraction values, to navigate them safely
Mud
45%
Rocks
55%
Sand
50%
Slowing Down Near Turns
Alpacas must also slow down near turns to navigate them safely. The speed reduction near turns is based on the turn radius:
10
30%
20
40%
30
50%
45
70%
60
80%
This slowing down happens within the LOOK_AHEAD_DISTANCE
.
Where LOOK_AHEAD_DISTANCE = 24
.